introduce regexFunction
Merge pull request #1 from alisle/master

Regex function