Fixed to the static compilation of regex pattern.