added caching to the regex field
Merge pull request #5 from wesleykendall/develop

added caching to the regex field