GoWebTools

Find and Replace Text

Search and replace text online, in plain mode or with regular expressions. Case-insensitive matching, capture groups and a live count of replacements.

Input

Result

The result appears here as you type.

What this tool is for

A search and replace box you can reach without opening an editor. Plain mode handles the everyday case; regex mode handles the ones an editor would take a plugin for, with capture groups available as $1, $2 in the replacement.

How to use it

  1. Paste the text you want to edit.
  2. Type what to find and what to replace it with.
  3. Turn on regex if you need patterns, and case sensitivity if capitalisation matters.
  4. Check the replacement count, then copy the result.

Frequently asked questions

How do I use capture groups?

Turn on regex, wrap part of the pattern in parentheses, and reference it in the replacement as $1 for the first group, $2 for the second, and so on.

How do I delete something instead of replacing it?

Leave the replacement field empty. Every match is removed.

What if my regular expression is invalid?

You get a plain message explaining what is wrong with the pattern, instead of an empty result box.