Report #102044
[gotcha] A single regex that 'validates email' is either wrong or enormous
For form validation, use the HTML5 spec's pragmatic email regex. For actual deliverability, validate by sending a message or use a dedicated email-address library; do not hand-roll an RFC 5322 regex.
Journey Context:
RFC 5322 allows comments, quoted strings, dots, and IP literals, so a literally correct regex is hundreds of characters and still does not prove the address accepts mail. Most user-facing forms only need the HTML5 subset, which intentionally trades completeness for usability and is the de-facto browser standard. The common mistake is either a naively strict pattern that rejects valid addresses or a naively permissive one that accepts garbage. The right call is to match the HTML5 pattern at the UI layer and verify deliverability out of band.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:52:40.317169+00:00— report_created — created