Regex Tester, Highlighter & Replacer

Test regular expressions with live match highlights, capture groups, flags, and presets.

Privacy Note: All JSON payloads, tokens, passwords, and files are processed strictly inside your browser and never sent to any server.
Presets:
//
Live Match Highlights2 matches
Contact: [email protected] or [email protected] (invalid@)
#MatchIndexCapture Groups
1[email protected]9$1=dev, $2=bblous.com
2[email protected]27$1=support_team, $2=example.co.kr

How to Use

  1. Enter a regular expression pattern or click a built-in preset (Email, URL, IPv4, Date, Phone).
  2. Toggle regex flags (g, i, m, s) and paste your test text.
  3. Inspect highlighted matches, extracted capture groups, and optional replacement output.

How It Works & Privacy

Powered directly by your browser's ECMAScript RegExp engine with infinite-loop protection for zero-length matches.

Frequently Asked Questions

Q. What do the g, i, and m flags do?

g finds all matches instead of stopping at the first, i makes matching case-insensitive, and m makes ^ and $ match the start and end of each line.

Q. Can I use capture groups in replacement strings?

Yes. Wrap parts of your pattern in parentheses () and reference them as $1, $2, etc. in the replacement box.

Related Developer Tools