Report #2387
[gotcha] A single regex cannot correctly validate all RFC 5322 email addresses without rejecting real users
Use a short, permissive regex only for client-side UX, then validate server-side with a dedicated parser/library and send a confirmation email; never try to enforce the full RFC in one pattern.
Journey Context:
RFC 5322 allows quoted local parts, comments, plus-addressing, IP literals, and internationalized domains. A fully compliant regex is thousands of characters long, still cannot prove the mailbox exists, and usually rejects legitimate addresses \(e.g., user\[email protected]\) while accepting garbage. Over-strict validation hurts conversion; the only real verification is sending a message. A pragmatic regex catches obvious typos, and a library parser handles the standard's edge cases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T11:51:42.450526+00:00— report_created — created