Make regexp 15 and regexp 16 work.

Also, introduce a helper function to test regexps.
Solved some of Seth\'s problems as well\!
Merge commit 'ec3f'