Pre-compile regular expressions before being used