Regex tester
Regex tester — free
Build and test a regular expression live — see highlighted matches, capture groups and named groups, toggle flags, and try replacements. All on your device.
Patterntested against the text below as you type
//gim
Only the pattern and flags travel in the link — the text you test against is never put in a URL.
Test stringmatches highlighted live3 matches
Invoices go to accounts+ap@brevdigital.com and a copy to hello@brev.ae.
Escalations: R.Menon@gulf-marine.co.ae (mobile only).
Do not use "invalid@" or "@example" — neither is a complete address.
Matchesposition and capture groups
| # | Match | At | Capture groups |
|---|---|---|---|
| 1 | accounts+ap@brevdigital.com | 15 | useraccounts+apdomainbrevdigital.com |
| 2 | hello@brev.ae. | 57 | userhellodomainbrev.ae. |
| 3 | R.Menon@gulf-marine.co.ae | 85 | userR.Menondomaingulf-marine.co.ae |
Replacepreview a substitution without touching the source
Turn on replace mode to see the result of
text.replace(/pattern/gim, …) — back-references like $1 and $<name> work exactly as they do in JavaScript.Tested on your device — nothing is uploaded.