Regex Replace
Find and replace with regular expressions. Use $1, $2 or $<name> to reference capture groups in the replacement.
/
/
Result
How to replace text with regex
1Enter your pattern and any flags.
2Type the replacement, using $1, $2 or $<name> for groups.
3Paste your text and click Replace to see the result.
How do I reference capture groups?
Use $1, $2 and so on for numbered groups, or $<name> for named groups. Use $& for the whole match and $$ for a literal dollar sign.
Does it change my original text?
No. Your input stays as-is; the replaced result is shown separately so you can copy it.