Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(\w+)@(\w+).([a-zA-Z]{2,6})((.[a-zA-Z]{2})?)$
/
gm

Description

Basic email regex for quick validation

Submitted by bUxEE - 2 years ago