Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^([\w\-\.]+)@((?:[\w\.]+)(?:\.[a-zA-Z]{2,3}))$
/

Description

Matches email with groups for username and domain.

Submitted by anonymous - 10 years ago