Regular Expressions 101

Community Patterns

Verify and match e-mail address

0

Regular Expression
PCRE (PHP <7.3)

/
(?<email>(?<username>[\w\W]+)@(?<domain>[\w\W]+\.[\w\W]+|localhost))
/
gi

Description

no description available

Submitted by Josh K - 11 years ago