Moving regex pattern to top-level var.