Regular Expressions 101

Community Patterns

Pattern for usual email address


Regular Expression
PCRE2 (PHP >=7.3)



Intentionally leaves out weird stuff such as IPV4 or IPV6 for the domain part and quoted usernames with invalid chars in the addressee part. Handles internationalized domains with soft validation (only structural matching) and blocks domain parts starting or ending with dashes or containing double dashes (except in xn-- internationalization prefix).

Submitted by Victor Schröder - 2 years ago