[CS] Pre-compile a regex