Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-07-25 03:22
Flavor·JavaScript

/
^[a-z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,64}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,64}[a-z])?){1,2}$
/
gmi
Open regex in editor

Description

Allow for emails with 2 '.' after the '@' symbol

Submitted by anonymous