Added support to RegExp patterns

You did <b>great work</b> with this library, Bram!

I added support to regular expressions. It would be great if you can check, test them yourself, merge this changes in your repository and publish them in npm repository.