DOOLS

Regex Explainer

Explain patterns token by token, toggle flags, and highlight matches against sample text.

/([\w.-]+)@([\w.-]+\.[A-Za-z]{2,})/gmi2 Matches12 Tokens2 groups34 chars matched

Pattern

Flags:/([\w.-]+)@([\w.-]+\.[A-Za-z]{2,})/gmi

Quick samples

len: 57words: 7

Explanation

Tokens: 12Matches: 2
(
Capturing group start
[\w.-]
Character class
+
1 or more of [\w.-]
)
Group end
@
Literal '@'
(
Capturing group start
[\w.-]
Character class
+
1 or more of [\w.-]
\.
Escaped .
[A-Za-z]
Character class
{2,}
Quantifier {2,}
)
Group end

Match preview

Reach us at hello@dools.dev or support@example.org today!

Matches

IndexLengthMatchesGroups
1215hello@dools.dev
#1hello
#2dools.dev
3119support@example.org
#1support
#2example.org