Optimise regular expressions to avoid repeated and unecessary compilation
Merge pull request #5 from MilhouseVH/regex

Optimise regular expressions to avoid repeated and unecessary compilation