Regex Tester
Test regular expressions online with live match highlighting, capture group details and full JavaScript flag support. Free regex debugger and playground.
//g
3 matches
Contact us at hello@blackdroid.dev or support@blackdroid.dev.
For press inquiries write to press@blackdroid.io — not a match, wrong TLD.| # | Match | Index | Groups |
|---|---|---|---|
| 1 | hello@blackdroid.dev | 14 | $1=hello$2=blackdroid.dev |
| 2 | support@blackdroid.dev | 38 | $1=support$2=blackdroid.dev |
| 3 | press@blackdroid.io | 91 | $1=press$2=blackdroid.io |
Use this regex in code
const re = /\b(\w+)@(\w+\.\w+)\b/g;
const matches = [...text.matchAll(re)];
// each entry: m[0] = full match, m[1..n] = groups, m.groups?.nameAbout Regex Tester
Type a pattern, pick your flags and see every match highlighted live in your test string, including numbered capture groups for each match.
The tester uses the JavaScript RegExp engine and supports the g, i, m, s, u and y flags. Everything is evaluated locally in your browser.