Please refer to our new email validation regex card.
Our most recent pattern is
EMAIL = /\A[a-z0-9\+\-_\.]+@[a-z\d\-.]+\.[a-z]+\z/i
Notes
- Don't replace
[a-z0-9\+\-_\.]with\w! Otherwise the pattern would allowßs and many other invalid characters. - The
email address standard
Show archive.org snapshot
allows more patterns of emails than those which work in practice (e.g.
a@ais valid). In result our pattern is more strictly. - Caution:
john..doe@example.comandjohn.doe@example..comare accepted as well.
Posted by Martin Straub to makandra dev (2012-10-25 15:05)