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: dev@bblous.com or support_team@example.co.kr (invalid@)
| # | Match | Index | Capture Groups |
|---|---|---|---|
| 1 | dev@bblous.com | 9 | $1=dev, $2=bblous.com |
| 2 | support_team@example.co.kr | 27 | $1=support_team, $2=example.co.kr |
How to Use
- Enter a regular expression pattern or click a built-in preset (Email, URL, IPv4, Date, Phone).
- Toggle regex flags (g, i, m, s) and paste your test text.
- 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
JSON Formatter
Pretty-print, validate syntax errors, sort keys recursively, and minify JSON instantly.
URL Encoder & Parser
Percent-encode or decode URLs and break down complex query strings into a clean key-value table.
Base64 Converter
Encode or decode UTF-8 text, URL-safe Base64, and convert images/files to Base64 Data URLs.