Regular Expressions 101

Community Patterns

Email Validator

0

Regular Expression
PCRE (PHP <7.3)

/
^([\w-\.]+@(?!gmail.com)(?!yahoo.com)(?!hotmail.com)([\w- ]+\.)+[\w-]{2,4})?$
/
g

Description

Validates email free domain specific email id

Submitted by anonymous - 7 years ago