Falsehoods programmers believe about email addresses

The classic email regex rejects valid addresses and accepts invalid ones. Here's what actually breaks email validation.

Try it — type something other forms reject:

/^\S+@\S+\.\S+$/ is the regex on a thousand signup forms. It is wrong in both directions — it blocks valid addresses and waves through invalid ones. You cannot truly validate an email without sending one, so the humane approach is to warn, not reject.

The falsehoods

How humaneforms handles it

The demo runs the real validateEmail. It accepts plus-tags, multiple dots, and IDN domains; it lowercases only the domain (the local part is case-sensitive); and it warns on the unusual-but-legal instead of blocking. For real deliverability, pair it with a provider — see our note on verification.

npm install @humaneforms/react, or get the Pack.

Get the Pack — $99 Free on GitHub