How to find and replace text
- Paste your text into the box.
- Type what to look for in Find, and the new text in Replace with.
- Use the switches if you need them: Regular expression, Match case and Whole word only.
- Check the Matches tile, then copy or download the result.
Plain text and patterns
In plain mode, the text you type is matched exactly as written. Characters such as dots, brackets and dollar signs have no special meaning, so you can replace a price or a file name without escaping anything.
In regular expression mode, your text is read as a pattern. A pattern can match many different strings at once. For example, \s+ matches any run of spaces, and (\w+)@(\w+) captures two parts of an email address. In the replacement you can write $1 and $2 to put the captured parts back in any order, or $& for the whole match.
Matching ignores capital letters unless you turn on Match case. Whole word mode works with accented letters and other scripts, not only English.
If the pattern cannot be read, you see an error such as “Invalid regular expression” and no changes are made.
Tips
- Replace commas with a line break by typing
,in Find and\n-style breaks by pasting a real line break into Replace. - Test a pattern on a small sample first. Patterns that match too much can rewrite more than you expect.
- To compare the result with your original, paste both into the text diff checker.
- For spacing problems, remove extra spaces is simpler than writing a pattern.
Privacy
Everything is processed on your device. Your text is not uploaded, saved on a server, or added to the page address. Only your option choices are remembered.