Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    See ex-parrot.com/~pdw/Mail-RFC822-Address.html Anything less than that is imperfection. In other words, it's very hard to validate all variations of valid email addresses. Commented May 3, 2013 at 15:00
  • 1
    The best way to validate an e-mail address is to try it. As long as it has an @ symbol it could be an e-mail address. Commented May 3, 2013 at 15:04
  • There is certainly a HUGE gap between the regex offered here and the one Rick Visconni recommends. Your regex is broken in several regards Keethan. Commented May 3, 2013 at 15:38
  • possible duplicate of Use javascript to find email address in a string Commented May 3, 2013 at 15:39
  • I recommend using Validator - github.com/chriso/validator.js, email address syntax is impossibly complicated and this library accounts for that. Commented Oct 1, 2018 at 17:57