Implement a Regexp match mode

fixes #30
Merge pull request #44 from lestrrat/gh-issue-30

Implement a Regexp match mode