Pre-compile regexes.
Merge pull request #2 from warriordog/master

Pre-compile regexes.