Report #3221
[gotcha] Email validation regex that is 'RFC-compliant' still rejects valid addresses or accepts invalid ones
Use a simple, permissive regex only to catch obvious typos—e.g., the HTML5 type=email pattern or '^\[^@\\s\]\+@\[^@\\s\]\+\\.\[^@\\s\]\+$'—then verify deliverability by sending a confirmation email or using a mailbox verification API. Never treat a regex match as proof the address can receive mail.
Journey Context:
RFC 5322 allows comments, quoted strings, dot-atoms, plus labels, and IDN/punycode, so a truly complete email regex is enormous and still wrong about deliverability. The HTML5 spec deliberately uses a much simpler grammar because browser vendors learned that strict syntax validation hurts UX. False negatives \(rejecting real addresses\) are usually worse than false positives; the only reliable 'validation' is an out-of-band mailbox check.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T15:53:18.826175+00:00— report_created — created