escape regex expression
should have actually checked the syntax
when regex is passed don't try to escape it
Merge pull request #3 from phoolish/regex-escape

Regex escape