T-48 · Text tools

Find and Replace Text

Find and replace text online with plain text or regular expressions. Match case, whole words, $1 backreferences, a live match count and preview.

  • Runs in your browser
  • Nothing uploaded
  • No account
Instrument T-48 · Find and ReplaceLocal

Inserted exactly as typed.

2 matches · 2 replaced

About this instrument

What it does

Paste text, type what to find and what to put in its place, and the result updates as you type with a count of the matches. Plain-text search treats every character literally; switch on regular expressions to use patterns, capture groups and the m, s and u flags, and insert parts of each match with $1, $<name> or $&. Match case, whole word and replace-all options work in both modes.

How to use it

  1. Paste your text.
  2. Type the text or pattern to find and its replacement.
  3. Check the match count and preview, then copy the result.

FAQ

Common questions.

01How do I reuse part of the match in the replacement?

Turn on “Regular expression”, wrap the part in parentheses, and use $1 for the first group, $2 for the second, $<name> for a named group (?<name>…) or $& for the whole match.

02Can I replace only the first match?

Yes. Turn off “Replace all”. The count still shows every match so you can see how many are left.

03Is my text uploaded?

No. Searching and replacing happen entirely in your browser.