lifekit

Search tools

Type a tool name, then press Enter to open it.

Find and replace

Find and replace text online with match case, whole word, and regex mode with $1 capture groups. See every match highlighted before replacing.

  • Free
  • Runs in your browser
  • Nothing is uploaded

How to use it

  1. Paste your text into the Text box.
  2. Type what to find and what to replace it with.
  3. Turn on Match case or Whole word, or switch to Regex to use patterns and $1 capture groups.
  4. Check the highlighted matches, then press Replace all or copy the result.

Private by design

Everything runs on your device. Nothing you enter or open here is uploaded.

Questions

Wrap part of the pattern in parentheses and refer to it as $1, $2, and so on in the replacement. For example, find (\w+) (\w+) and replace with $2 $1 to swap two words; named groups (?<name>…) work as $<name>, and $& inserts the whole match.

It only matches the search term when it isn't part of a longer word, so cat matches cat and cat's but not catalog or bobcat. It understands accented and non-English letters.

The pattern hit catastrophic backtracking and was stopped after 2 seconds. Searches run in a background worker that's shut down when it runs too long, so the page never freezes; rewrite nested repeats like (a+)+ or (.*)* into a simpler pattern.

JavaScript regular expressions, including lookahead, lookbehind, named groups, and Unicode classes like \p{L}. Matching is global and multiline, so ^ and $ match at each line, and \n in the replacement inserts a new line.

No. Searching and replacing run entirely in your browser, and your text never leaves your device.