Text
Bulk Find and Replace
Replace text in bulk with optional regular expressions, capture groups and whole-word matching.
What is Bulk Find and Replace?
Find and replace is basic text editing, but once you need to process thousands of lines according to a pattern, the feature built into your editor usually falls short. That is where regular expressions come in.
This tool supports both modes. Plain mode replaces exactly the string you type, with no need to worry about special characters. Regex mode lets you describe a pattern and use capture groups to rearrange content - for example turning 5551234567 into 555.123.4567 with the pattern (\d\d\d)(\d\d\d)(\d\d\d\d) replaced by $1.$2.$3.
The match count appears before you apply anything, so you can refine the pattern until it is right and only then copy the result.
How to use
- Paste the text you want to process into the box above.
- Enter what to find and what to replace it with.
- Enable regular expressions if you need to describe a pattern rather than a fixed string.
- Check the match count, review the result below, then click Copy.
Frequently asked questions
How do capture groups work?
Wrap the part you want to keep in parentheses in the find pattern, then reference them as $1, $2, $3 in the replacement, numbered by opening bracket. For instance (\w+) (\w+) replaced by $2, $1 turns John Smith into Smith, John.
Why is whole-word matching disabled in regex mode?
Because in regex mode you control word boundaries yourself with \b, which makes the option redundant and liable to conflict with the pattern you wrote.
What about special characters in plain mode?
They are fine. In plain mode every special character — dots, question marks, brackets — is escaped automatically, so they are treated as literal text.