Regex Tester
Test JavaScript regular expressions live. See every match highlighted, capture groups parsed, and a replace preview. Everything runs in your browser.
Pattern
Test string
Matches highlighted
3 matches
Replacement
Match details
Match #1 at index 12
akhil@eximpe.com
Match #2 at index 32
support@pyrelo.in
Match #3 at index 56
rohan@example.org
The regex engine is your browser's native RegExp. Patterns and text never leave the page.
FAQ
What regex flavour does this use?▼
JavaScript regex (ECMAScript). Most patterns translate directly to other engines but a few features (lookbehind, named groups, Unicode property escapes) behave slightly differently in older browsers. Match against your real runtime if it matters.
Which flags are supported?▼
g (global), i (case-insensitive), m (multiline, ^/$ per line), s (dotAll, . matches newlines), u (Unicode), and y (sticky). Toggle them with the checkboxes.
What does the Replace box do?▼
Live preview of `text.replace(regex, replacement)`. You can use $1, $2 backreferences and named groups ($<name>). The result updates as you type.
Is my input sent anywhere?▼
No. Regex and text never leave your browser tab. The matching is run by your browser's own regex engine.
More Website Tools
WHOIS Lookup
See a domain's registrar, registration date, expiry, status flags, and nameservers. Powered by RDAP — the modern WHOIS replacement.
SPF / DMARC / DKIM Checker
Audit a domain's email authentication records. Spot misconfigurations that send your offer letters and invoices to spam.
OG Link Preview
See how any URL will render when shared on Twitter, LinkedIn, Slack, iMessage, and Discord. Catches missing OG tags before you post.