Regular Expressions 101

Community Patterns

E-Mail regex

1

Regular Expression
PCRE (PHP <7.3)

/
[a-zA-Z0-9._]*@[a-zA-Z0-9-]*\.[a-z]*
/
gm

Description

A regex to catch all types of e-mail-dresses with a variety of domain names.

Submitted by anonymous - 4 years ago