Find and Replace

Replace words or regex patterns across a whole text, with highlighted matches.

Text

0 chars

Replaced

Runs on this device. Nothing is uploaded.

About the Find and Replace

Replace a word, a phrase or a pattern everywhere in a text at once. Matches are highlighted and counted before you copy the result. Switch on regular expressions for patterns, use $1 to reuse a captured group, and match whole words only so cat does not change category.

How to use it

  1. Paste your text.
  2. Type what to find and what to replace it with.
  3. Check the highlighted matches and the count.
  4. Copy the replaced text.

Example

Input
Find: (\w+)@oldmail\.net Replace: [email protected]
Result
[email protected] becomes [email protected]

Questions

How do I replace line breaks?

Turn on Regular expression and search for \n. Replace with a space, a comma, or anything else.

What regex syntax is supported?

JavaScript regular expressions with the Unicode flag: character classes, groups, lookahead and lookbehind, and \p{L} for any letter. Use $1, $2 in the replacement for captured groups and $& for the whole match.

What happens with an invalid pattern?

The tool shows the error message and leaves your text unchanged until the pattern is fixed.

Related tools