About Find and Replace
Change every occurrence of a word or phrase in one go, without opening an editor. Type what to find and what to put in its place, and the updated text appears straight away with a count of how many matches were replaced.
Turn on Regular expression for pattern matches, and reuse captured groups in the replacement with $1, $2 and so on. Your text is handled inside your browser and is never sent anywhere.
How to use it
- Paste your text into the Input box, or use Open to load a text file.
- Enter the text to find and its replacement, then tick Match case, Whole words only or Regular expression if you need them.
- Check the result and the match count on the right.
- Copy it, download it as a .txt file, or press Use as input to make another replacement.
Frequently asked questions
Does it replace only the first match?
No. Every match in the text is replaced, and the label above the output tells you how many there were.
How do I use capture groups?
Tick Regular expression, wrap part of the pattern in parentheses, and write $1 for the first group (and $2, $3 for later ones) in Replace with. $& inserts the whole match.
What happens if my regular expression is wrong?
The output is replaced by an error explaining what is invalid, such as an unterminated group, so you can fix the pattern.