Create test regex expression

This is based on .Net's flavour of the perl 5 regular expressions, since
I already had tools installed to test these. There are slight
modifications required for Python's perl 5 re support.