Find & Replace (with Regex)
Local — Runs in your browser; files and input stay on this deviceFree — Free to useSearch and replace across a whole block of text — plain or with regular expressions and capture groups. Live preview and match count, 100% client-side.
Text
Result
The result with your replacements will appear here.
Runs in your browser; files and input stay on this device
About find & replace
Beyond simple text swaps, regular expressions let you match patterns — dates, tags, whitespace runs — and reuse captured groups in the replacement with $1, $2, and so on. This tool applies your pattern live with the flags you choose and shows how many matches it found, all in your browser with nothing uploaded.
How to use Find & Replace with Regex
- 1Paste the source text and enter what to find and what should replace it.
- 2Choose plain matching or Regex, then set case, all-matches, multiline, or dot-all options as needed.
- 3Review highlighted matches and replacements, then copy the result.
Frequently asked questions
- Can replacement text reuse regex capture groups?
- Yes. In Regex mode, use $1, $2, or $<name> for captured groups, and $& for the full match.
- What does “All matches” change?
- The page always counts and highlights every match. When All matches is off, only the first match is replaced in the output.
- Does the operation modify the input text?
- No. The input remains available beside a separate live result until you clear or replace it.