Email Validation With Regex: Keep It Simple
A practical pattern tested on six addresses, and why a confirmation link beats a bigger regex.
By the TurantTools Dev team · Updated October 27, 2026 · 3 min read
The "perfect" email regex doesn't exist: the full rules allow quoted local parts, comments and international domains. A simple pattern catches typos; only a confirmation email proves an address works.
A practical pattern
^[^\s@]+@[^\s@]+\.[^\s@]+$
| Input | Result |
|---|---|
| [email protected] | Accepted |
| [email protected] | Accepted |
| ana@localhost | Rejected |
| ana@@example.com | Rejected |
| ana @example.com | Rejected |
| ana@example | Rejected |
Better than a bigger regex
- Use
<input type="email">for a built-in browser check and the right mobile keyboard. - Don't reject
+tags or long new domains like.photography. - Send a confirmation link: it's the only real test.