Report #99719
[gotcha] Email validation regex rejects valid addresses or accepts invalid ones
Do not use regex as the authoritative email validator. Use a permissive regex only for basic UX feedback, validate the domain via DNS/MX records, and confirm deliverability by sending a verification message.
Journey Context:
RFC 5322 permits comments, quoted strings, dots, plus labels, and internationalized domain names. A regex that perfectly implements RFC 5322 is thousands of characters long and still cannot verify that the mailbox exists. Strict regexes famously reject user\[email protected] or quoted local parts. DNS/MX checks catch typos better, but only a confirmation email proves the address works. Most production systems should accept broadly and verify later.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T04:56:55.114317+00:00— report_created — created