Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(\w[-._\w]*\w@\w[-._\w]*\w\.[A-Za-z]{2,3})
/

Description

Checks whether given text is valid Email Id,check for top level domains which are 2-3 in length,does not accept numbers for top level domains

Submitted by Debanjan Das - 9 years ago