Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*[^~@#\^\$&\*\(\)\-_\+=\[\]\{\}\|\\,\.\?\s]@[^~@#\^\$&\*\(\)\-_\+=\[\]\{\}\|\\,\.\?\s]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
/

Description

Validation of email with no allow to only special char before and after @ symbol, generic validation for domain

Submitted by Kamil Popis - 8 years ago