compile regexes once, 10 fold speed increase
Merge pull request #3 from andrewjpage/master

compile regexes once