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*

34
  • 273
    You said "There is no good regular expression." Is this general or specific to e-mail address validation? Commented Oct 14, 2008 at 14:33
  • 65
    @Tomalak: only for email addresses. As bortzmeyer said, the RFC is extremely complicated Commented Oct 14, 2008 at 16:23
  • 48
    The linux journal article you mention is factually wrong in several respects. In particular Lovell clearly hasn't read the errata to RFC3696 and repeats some of the errors in the published version of the RFC. More here: dominicsayers.com/isemail Commented Apr 8, 2009 at 15:56
  • 11
    Note that the current HTML5 spec includes a regex and ABNF for email-type input validation that is deliberately more restrictive than the original RFCs. Commented Sep 9, 2014 at 16:14
  • 22
    RFC 822, section 6.2.4. specifically and explicitly allows capital letters, but this answer does not. w3.org/Protocols/rfc822/#z26 Perhaps the author of this answer intended for their regex to be applied insensitively. If so, that should be made explicit in the body of the answer. Commented Apr 10, 2019 at 22:36