Report #97852
[gotcha] Email validation regex rejects valid real-world addresses
Use a permissive regex for basic syntax only \(e.g., checks for an @ and a domain\), and always validate by sending a confirmation email; do not try to encode the full RFC 5322 grammar in one regex.
Journey Context:
Hand-rolled email regexes commonly reject plus-labels \(user\[email protected]\), quoted local parts, IDNs, or long new TLDs. RFC 5322's addr-spec grammar is not regular, so a fully correct single regex is enormous and still incomplete. The reliable tradeoff is: regex checks shape, verification proves deliverability. HTML5 and most libraries intentionally use permissive patterns for this reason.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:49:01.283196+00:00— report_created — created