--- /dev/null
+#!/bin/env python
+# -*- coding: utf-8 -*-
+
+import pprint
+import re
+
+regexes = [
+ 'maandag 11 augustus 2014 19:30 - Neutral Milk Hotel',
+ 'dinsdag 19 augustus 2014 22:00 - Arkells',
+ 'maandag 24 november 2014 20:30 - Fink',
+ 'woensdag 19 november 2014 20:00 - Michael Schulte',
+ 'zondag 26 oktober 2014 21:00 - The Majority Says - Locatie: Bitterzoet',
+ 'maandag 15 september 2014 20:30 - Ani DiFranco',
+ 'maandag 13 oktober 2014 20:30 - Tarrus Riley',
+ 'maandag 29 december 2014 20:30 - Alain Clark - Locatie: De Duif']
+
+example_regex = re.compile("""\
+(?P<date>
+ [a-z]+\s # dayname
+ [0-9]{2}\s[a-z]+\s # month and day
+ [0-9]{4}\s # year
+ [0-9]{2}:[0-9]{2}) # time
+ \s-\s # separator
+(?P<act>
+ .*?) # act
+ ($|\s-\sLocatie:\s # opt. separator and location marker else line end
+(?P<location>.*)) # optional location
+""", re.VERBOSE)
+
+for regex in regexes:
+ match = example_regex.search(regex)
+ if match:
+ dct = match.groupdict()
+ if dct['location'] is None:
+ dct['location'] = 'Hoofdgebouw'
+ for k, v in dct.iteritems():
+ print '\n{}: {}'.format(k, v),
+ print regex
+ else:
+ print 'No match made'
+ pprint.pprint(regex)