Regex Replace
Find and replace text using regular expressions with live preview and capture group support.
Advertisement
Flags:
Use $1, $2… to reference capture groups. Use $& for the full match.
Matches in Input
Result
Advertisement
How to Use Regex Replace
- Enter a pattern to search for — use capture groups
()to save parts of each match. - In the replacement, use
$1,$2to reference captured groups. - Enable the g (global) flag to replace all occurrences, not just the first.
- Results update automatically as you type.