Find and Replace

Inputs

Results

Replacements
—

Paste a text, type what to find and what to put instead, and every match is replaced at once. Use it to fix a repeated typo, rename something throughout a document or clean up pasted data.

How to use it

  1. Paste your text.
  2. Type what to find and what to replace it with (leave it empty to delete the matches).
  3. Choose the options, then copy the result.

Examples: finding “cat” with Whole words only in “cat category cat” makes 2 replacements and leaves “category” alone. With Regular expression, find (\w+)@(\w+) and replace with $2 at $1 to swap the parts around the @.

Questions and answers

What can I use in regular expression mode?

JavaScript regular expressions with Unicode support: \d digits, \s spaces, . any character, [abc] sets, + one or more. In the replacement, $1, $2… insert captured groups, $& the whole match and $$ a dollar sign.

How do I remove something?

Leave Replace with empty: every match is deleted.

Why did my search stop?

Some regular expressions take exponentially long on certain texts. The search is stopped after two seconds so the page stays responsive.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
textThe text to search.
findWhat to find (text, or a regular expression with regex=true).
replaceWhat to put instead (empty deletes).
casetrue to match upper and lower case exactly.
wholetrue to match whole words only.
regextrue to treat find as a regular expression.

Example: https://toolabelle.com/find-and-replace/#text=I+like+cats.+Cats+like+me.&find=cats&replace=dogs&case=false&whole=false&regex=false

Related tools