Richscripts

Find and replace text

Replace every occurrence of a word or pattern in a block of text, with a count of what changed.

Private: everything happens in your browser. Nothing you type or choose is uploaded.

How to use it

  1. Paste your text.
  2. Type what to find and what to replace it with.
  3. Check the count, then copy the result.

Questions and answers

How do I use regular expressions?

Tick Regular expression. You can use groups and refer to them as $1, $2 in the replacement, for example find (\w+)@ and replace with [$1]@.

What does "Whole words only" do?

It replaces cat but not the cat inside category.

Can I delete text?

Yes. Leave "Replace with" empty to remove every match.

Text tools