Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-08-10 18:23
Flavor·ECMAScript (JavaScript)

/
^[_A-Za-z0-9-]+(?:\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*(?:\.[A-Za-z]{2,})$
/
gm
Open regex in editor

Description

Allow TLDs with 2 or more characters

Submitted by anonymous