Pre-compile regexes.