Report #184
[gotcha] Email validation regex rejects valid addresses or accepts invalid ones
Use a library that parses RFC 5322 addr-spec \(e.g., Python email-validator, JavaMail InternetAddress, .NET MailAddress\). If you must use a regex, only do a coarse structural check: allow atext/dot-atom local parts, an '@', and a domain name; punt deliverability to SMTP or DNS.
Journey Context:
RFC 5322 allows quoted local parts \(e.g., "user name"@example.com\), plus signs, dots, comments, and domain literals. A regex that tries to enforce the full grammar explodes, while a strict one rejects legitimate addresses. The only true validation is delivery; most apps should accept a permissive syntax and let the mail system reject bad recipients. This is why standards explicitly discourage hand-rolled email validators.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-12T21:40:40.138442+00:00— report_created — created