Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(([\w\-\.]*)@([\w\.]*[.][\w]{2,3}))$
/

Description

Groups for: Whole email user domain

Matches valid emails with numbers, chars, dots and dashes, domains with extensions of 2 or 3 letters.

Submitted by Ruben Paz - 10 years ago