Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^|\b[a-zA-Z]\w*@[\da-z]+\.[a-z]+\b|$
/
g

Description

Finds all email addresses on a page.

Submitted by anonymous - 8 years ago