Fix regex escaping

This makes the provided word count script work.
Merge pull request #8 from thusoy/patch-4

Fix regex escaping