Pre'compile' the regex.