About the Find and Replace Text
When you need to change every occurrence of something in a block of text, this is faster than an editor: paste the text, type what to find and what to replace it with, and every match is replaced at once. The status reports how many replacements were made. Case can be ignored, and the find field can be a full regular expression when you tick the option.
In regex mode, capture groups are available in the replacement using $1, $2 and so on, so you can reformat as well as replace, for example turning (\d{4})-(\d{2}) into $2/$1. An invalid regex is reported rather than silently failing.
For pattern extraction rather than replacement, the Regex Tester shows matches and groups; for replacing across many lines with the same rule, this tool already applies globally.
How to use
- Paste the text.
- Enter the find and replace values; tick Regex for patterns.
- Copy the result; the status shows how many replacements happened.
Common questions
- Can I use capture groups in the replacement?
- Yes, in regex mode. Use $1, $2 for the groups from your pattern.
- Is the search case-sensitive by default?
- Yes. Tick "Ignore case" to match regardless of case.
- What if my regex is invalid?
- The tool reports the error message instead of replacing, so you can fix the pattern.