Regex hardening