Skip to main content

Regex Replace

Find and replace text using regular expressions with live preview and capture group support. Runs in your browser — nothing is sent to a server.

Flags:

Use $1, $2… to reference capture groups. Use $& for the full match.

Matches in Input

Result

How to Use Regex Replace

  • Enter a pattern to search for — use capture groups () to save parts of each match.
  • In the replacement, use $1, $2 to reference captured groups.
  • Enable the g (global) flag to replace all occurrences, not just the first.
  • Results update automatically as you type.

Specifications

Accepts
Text — type or paste
Gives you
copy to clipboard
Where it runs
Your browser — the file is never uploaded
Sign-up
None
Cost
Free, with no usage limits