Fix regex error on strings containing \
Merge pull request #36 from andig/fix-35

Fix regex error on strings containing \