Regex Explainer

Break any regular expression into plain-English pieces, token by token.

Paste /pattern/flags or just the pattern.

Step by step

TokenMeaning
^Start of the text
(?<user>Start of capturing group #1 named “user”
[\w.+-]+one character from: word char, “.”, “+”, “-” — one or more times (as many as possible)
)End of group
@the character “@”
(Start of capturing group #2
[a-z0-9-]+one character from: a–z, 0–9, “-” — one or more times (as many as possible)
\.the literal character “.”
)+End of group — repeat the group one or more times (as many as possible)
[a-z]{2,}one character from: a–z — 2 or more times (as many as possible)
$End of the text

2 capturing groups.

  • i — ignore case — A and a are the same

Try it

0 matches

Contact jai.singh+tools@technicalsimple.com or info@example.co.uk — not bad@email