Report #432
[gotcha] Strict email regex rejects valid addresses or accepts invalid ones
Use a spec-aware validator such as Python's email-validator library. If you must use regex, keep it permissive and aligned with RFC 5322, then confirm deliverability with a verification email or MX check.
Journey Context:
Email addresses allow quoted strings, comments, dots, plus labels, IDNs, and many characters in the local part that naive patterns reject. Conversely, a syntactically valid address can be undeliverable. Validating only with regex either blocks real users or accepts garbage; syntax validation per RFC 5322 plus DNS/MX and a verification step is the production-safe approach.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T07:55:42.148061+00:00— report_created — created