Regular Expressions 101

Community Library Entry

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