Report #1278
[gotcha] Email validation regex that actually works without rejecting valid addresses or accepting garbage
Use the WHATWG email-state regex /^\[a-zA-Z0-9.\!\#$%&'\*\+\\/=?^\_\`\{\|\}~-\]\+@\[a-zA-Z0-9\]\(?:\[a-zA-Z0-9-\]\{0,61\}\[a-zA-Z0-9\]\)?\(?:\\.\[a-zA-Z0-9\]\(?:\[a-zA-Z0-9-\]\{0,61\}\[a-zA-Z0-9\]\)?\)\*$/ for syntactic checks, then verify ownership by sending a confirmation link. Do not try to encode the full RFC 5322 grammar in a single regex.
Journey Context:
Developers often write overly strict patterns that reject plus-addressing, quoted local parts, or new TLDs, or overly permissive patterns that allow spaces and multiple @ signs. The HTML5 spec deliberately defines a practical, interoperable subset that browsers use; for everything else, only a real mailbox test matters because the RFC grammar permits pathological forms no human types.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T19:58:30.503814+00:00— report_created — created