added regex patch
Merge pull request #9 from nubela/master

added regex patch