Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[a-z]{1}[a-z0-9!#$%&'*+-\/=?^_`{|}~]{0,}@[a-z]{1}[a-z.0-9-]{0,}[a-z0-9]{1}\.[a-z0-9]{2,}$
/
gim

Description

opinionated email validation based on https://en.wikipedia.org/wiki/Email_address.

i have excluded some email patterns that don't seem to be common

Submitted by Pavel Dominguez - 4 years ago (Last modified 4 years ago)