Find and Replace

Find and replace words or phrases in text with match case and whole word options.

Words: 0Characters: 0

Finds every occurrence of a word, phrase or pattern in your text and replaces them all at once, with case matching, whole-word matching and regular expressions. The match count updates as you type.

How to use it

  1. Paste your text into the editor.
  2. Type what to look for in Find; the number of matches appears beside it.
  3. Type the new text in Replace — leave it empty to delete the matches — and press Replace.

The undo button beside it reverts the last replacement, until you edit the text yourself. Copy copies the result.

Matching options

  • Match case — off by default, so “cat” also finds “Cat” and “CAT”.
  • Whole word — finds “cat” but not the “cat” inside “catalog”. A word is letters and digits in any script, with underscores. Not available with regular expressions; use \b in the pattern instead.
  • Use regular expression — Find is read as a JavaScript regular expression. ^ and $ match the start and end of the whole text, not of each line. Patterns run in Unicode mode, so \p{L} matches a letter in any script; an invalid pattern shows why below Find.

In the replacement, $& inserts the matched text and $1, $2… a group from the regular expression. This applies to plain searches too, so type $$ for a literal dollar sign.

Examples

Whole word

Text
The cat sat on the catalog.
Find
cat (whole word)
Replace
dog
Result
The dog sat on the catalog.

1 match: the “cat” inside “catalog” is left alone.

Reordering dates with a regular expression

Text
Due 2026-09-29, paid 2026-10-04.
Find (regex)
(\d{4})-(\d{2})-(\d{2})
Replace
$3/$2/$1
Result
Due 29/09/2026, paid 04/10/2026.

See also