Cache regex objects
Merge pull request #5 from darkwing/regex-cache

Cache regex objects