Regex Find & Replace
6 toolsFind and replace text using capture groups.
Runs in your browser — your files and text stay on your device
Find and replace text using regular expressions and capture groups, such as swapping the order of two parts with $2 $1. Preview the result before you copy it, and test on a small sample first. It runs in your browser.
//
Result
How to use this tool
- 1Enter a pattern with capture groups, and flags.
- 2Enter a replacement using $1, $2, etc. for each group.
- 3Paste input text and see the transformed result.
Frequently asked questions
What does $1 mean?
It refers to the first parenthesized capture group in your pattern; $2 the second, and so on.
Is my text sent anywhere?
No — replacement runs entirely in your browser.