Moved "regex compile" to global variables