Developer Tools
Regex Replace
Find-and-replace with regex, capture groups, and live preview.
Loading interactive tool...
About this tool
Apply a regex with a replacement string and see the output update as you type. Use $1 / $<name> to interpolate captured groups. The original input is preserved so you can compare side-by-side.
Frequently asked questions
How do I use capture groups in the replacement?
$1 / $2 reference numbered groups; $<name> references named groups (?<name>…). Use $$ to insert a literal dollar sign.