Find & Replace with Regex illustration

Find & Replace with Regex

Finds and replaces text with plain matching or full regular expressions, including capture-group references ($1, $2) in the replacement. Every match is highlighted before you commit, and a counter shows how many replacements will happen.

Runs 100% in your browser — nothing you paste leaves your device.

Notes

  • Regex mode uses JavaScript syntax: \d, \w, (…) groups, (?:…), lookaheads and the i/m/s flags all work.
  • In the replacement, $1…$9 insert capture groups, $& the whole match, and $$ a literal dollar sign.
  • Runs 100% in your browser — nothing you paste leaves your device.

Explore the idea

This interactive demo needs JavaScript.