Regular Expressions 101

Community Patterns

1...56789...901

Community Library Entry

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 - 8 years ago