Report #1706
[gotcha] Email validation regex rejects valid addresses or accepts invalid ones
Use a library validator or the HTML5 email regex pattern; if you must use regex, accept a conservative subset and verify ownership by sending a confirmation email rather than validating syntax strictly.
Journey Context:
RFC 5322 permits comments, quoted strings, and characters that most web forms reject; conversely, naive regexes fail on plus-addressing, IDN, and new TLDs. The HTML Living Standard deliberately defines a simpler 'valid e-mail address' grammar that matches real-world usage. The only true validation is deliverability, so syntax checks should be permissive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T06:52:11.379861+00:00— report_created — created