Add a cache for the regex expression
v2.3.5