Guide
Bulk replacements without accidental changes, plus regex recipes
A company changes its name, a product gets renamed, a colleague’s name was misspelled throughout a 20-page draft, or exported data has the wrong date format in every row. Replacing everything by hand is slow and error-prone; replacing everything blindly is risky. This tool shows every match and the full result before anything changes.
The safe workflow
- Paste the text into the Text box.
- Type what to find. The match count appears immediately, and every match is highlighted in the Matches panel.
- Check the matches. Are there any you don’t want to change?
- Type the replacement and read the Result panel. Nothing in your original text has changed yet.
- Copy the result, or click Replace in text to make it the new working text, for example to run a second replacement.
The original text stays untouched until you press Replace in text, which works as a natural undo point.
Avoiding accidental matches
Most replacement accidents are partial matches:
- Whole words only. Replacing cat without it also changes category, concatenate and Catalan. With it, only the separate word cat matches. Word boundaries work with accented letters and digits, too.
- Match case. Off by default, so Acme, ACME and acme all match. Switch it on when capitalization carries meaning, such as a product name versus an ordinary word.
- Check the count. If you expected 12 replacements and the counter says 31, look at the highlights before continuing.
Chaining replacements
Real clean-up jobs often need several passes, for example renaming a product, then fixing its plural, then removing a trademark sign. After each step, click Replace in text and enter the next search. Each step builds on the previous result.
Regular expressions: recipes
Switch on Regular expression to match patterns instead of fixed text. In the replacement, $1, $2… insert the parts captured in parentheses, and \n and \t insert a line break and a tab.
| Task | Find | Replace with |
|---|---|---|
| Swap “Last, First” to “First Last” | (\w+), (\w+) |
$2 $1 |
| Dates 31/12/2026 → 2026-12-31 | (\d{2})/(\d{2})/(\d{4}) |
$3-$2-$1 |
| Remove spaces at line ends | [ \t]+$ (with Match case off) |
(empty) |
| Collapse double spaces | {2,} |
(one space) |
| One line per item → comma list | \n |
, |
| Comma list → one item per line | ,\s* |
\n |
| Change an email domain | @old\.com\b |
@new.com |
Note that $ only works at line ends in multi-line text if your pattern targets each line, so test recipes on a few lines first. If a pattern is invalid, for example because of an unclosed bracket, the tool shows the error instead of a result. To build and debug more complex patterns, use the Regex Tester.
Good to know
- The search runs on the text you paste, not on a Word or PDF file directly. Copy the text in, then paste the result back.
- Your text is remembered in this browser between visits and never uploaded.
Who uses find and replace on text
- Writers and editors fix a repeated misspelling, change a character’s name, or switch “e-mail” to “email” throughout a manuscript.
- Office workers update dates, prices or product names in long texts copied from documents.
- Developers and data workers clean exports, change separators and reformat lists, often with regular expressions.
- Translators apply consistent terminology across a text.
- Teachers adapt worksheets by replacing names and numbers.
A complete example: updating a price list in text form
- Paste the text.
- Find 2025 and replace with 2026, with Whole words only on so 20250 isn’t touched.
- Check the number of matches and the highlighted results before applying.
- Next, find € and replace with EUR if a system needs plain text.
- Copy the final text back.
A complete example: reformatting dates with a regular expression
To turn dates like 2026-10-12 into 12/10/2026:
- Switch on Regular expression.
- Find
(\d{4})-(\d{2})-(\d{2})and replace with$3/$2/$1. - Check the preview: every date is reordered, and nothing else changes.
Tips
- Always read the match count first; an unexpected number means the search is too broad.
- Leave the replacement empty to delete matches, for example to remove a repeated footer line.
- Test complex patterns in the Regex Tester and compare before and after with the Diff Checker.
Related tools
- Text Cleaner for common clean-ups (spaces, line breaks, quotes) without writing patterns.
- Remove Duplicate Lines for lists.
- Case Converter when the change is capitalization.
Checked against the current version of the Find and Replace on .

