Report #2983
[gotcha] Trying to validate email addresses with one comprehensive regex
Stop trying. The only correct validation is sending a verification message. If you need a front-end sanity check, use a permissive pattern and verify deliverability via DNS/MX or a dedicated library.
Journey Context:
RFC 5322 allows quoted strings, comments, dot-atoms, IP literals, and local parts far weirder than most people expect. A regex that truly matches the RFC is enormous and still wrong in practice because it accepts addresses no mail server will deliver to, while rejecting common valid forms. Most home-grown patterns reject plus-addressing, quoted local parts, or IDN domains. Libraries like email-validator separate syntax from existence by checking MX records; that is the right boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T14:52:02.508326+00:00— report_created — created