improve regular expression matching by pre-compile tech.