Use a regular expression to find every match in your text and substitute it with another string. Capture group references ($1, $2) and the whole-match marker ($&) are fully supported. All processing runs in your browser using the native RegExp engine.
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.