Regex Find & Replace
Run a regular expression find-and-replace over any text, with live output, capture-group references, and a replacement tally.
Presets
Pattern & replacement
Pattern
Flags
Replacement$1, $<name>, $& and $$ supported
Input text
Input
Output
2 replacements
example.alice server.bobAbout this tool
Replacement runs entirely in your browser with the native JavaScript RegExp engine. Enable the global flag to replace every match instead of just the first. In the replacement field, $1 and $2 insert numbered capture groups, $<name> inserts a named group, $& inserts the whole match, and $$ produces a literal dollar sign.