fixed regex syntax
Merge pull request #3 from morphatic/master

fixed regex syntax to match javascript flavor