Regular Expressions 101

Match Gmail Email

Open Workspace
  • PCRE (Legacy)
  • Match
  • Recommended
14

Regular Expression

/
^[a-z0-9]+(?!.*(?:\+{2,}|\-{2,}|\.{2,}))(?:[\.+\-]{0,1}[a-z0-9])*@gmail\.com$
/
gmi

Description

Match Gmail Email

Submitted by Óscar Enríquez