Cache regex