optimize: made all the regex patterns share one single sregex memory pool for compilation to save memory.