Compile the RE only once.

Eg. make the compile operation useful, performance-wise.
Merge pull request #1 from Karmak23/patch-1

Compile the RE only once, not at each method call.