Find & Replace
Search and replace any word, phrase, or pattern in your text. Supports regex, case-sensitive and whole-word matching.
How to use the find and replace tool
Paste your text in the left panel, enter a search term and a replacement, then click Replace All. The right panel shows a live preview with all matches highlighted in orange before any replacement is made. Use Replace This to step through matches one by one.
| Pattern | Matches | Example |
|---|---|---|
| \d+ | Any sequence of digits | 123, 4567 |
| \w+ | Any word (letters, digits, _) | hello, foo_bar |
| [aeiou] | Any vowel | a, e, i, o, u |
| \s+ | One or more whitespace characters | spaces, tabs |
| ^ | Start of a line | ^Hello matches line-start Hello |
| $ | End of a line | world$ matches line-end world |
| (foo|bar) | Either "foo" or "bar" | foo, bar |
| \b | Word boundary | \bcat\b matches "cat" not "catch" |
All matches are highlighted before replacing. Navigate with Prev/Next to step through matches one at a time — no accidental replacements.
Enable Regex mode to use full JavaScript regular expression syntax. Capture groups, lookaheads, and backreferences all work as expected.
Every Replace All action saves the previous text. Hit Undo to instantly revert the last replacement — no data is ever lost.
After replacing, a diff shows exactly what changed — deleted text in red, inserted text in green. Perfect for reviewing bulk edits.