Use a regular expression to find patterns in your text and replace them with a substitution string. Supports capture group references like $1, $2 in the replacement.
MODE
The tool uses the browser's native JavaScript RegExp engine. Patterns are compiled with new RegExp(pattern, flags) and results are computed synchronously. Invalid patterns show an error badge, they never crash the page.
Both the pattern and the test string are processed entirely in your browser. Our servers are not involved at any point.
For plain substring swaps without regex, try find and replace. To validate JSON patterns you are matching, use the JSON formatter. For decoding escape sequences in HTML attribute values, see HTML entities.