Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
([^\ ]+[\@]{1}[^\ ]+[\.]{1}[a-zA-Z]{2,14})
/

Description

New gTLDs (2-14 chars)

  • Allows sentence endings after email
  • Accepts every char (except space)

= Full Email Support

Note: 14 chars because of "cashbackbonus" domains that are coming.

Submitted by timmyRS - 8 years ago