Regular Expressions 101

e-mail regex

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

/
^\w+(\.[\w-]+)*@([\w-]+\.)*\w([\w-]+\.)+[\w-]+$
/
gm

Description

Validates an email address

Submitted by Anonymous