How it works
Applies global replacement using a /pattern/flags expression. Backreferences and risky nested quantifiers are blocked; pattern and sample lengths are capped.
Regex Replace Tool — Enter code or structured data, then set the format, pattern, or conversion direction.
This tool runs in your browser. Inputs are not sent to a server.
Applies global replacement using a /pattern/flags expression. Backreferences and risky nested quantifiers are blocked; pattern and sample lengths are capped.
With /cat/i, sample Cat cat, and replacement dog, the output is dog dog.
Simplify invalid or blocked patterns and shorten samples beyond 20,000 characters.
No. Backreferences are intentionally rejected.
The input area shows the accepted format and available controls for this tool.
No. Your input is handled in the browser you are using. Privacy