This regular expression was derived from [url=http://www.w3.org/Protocols/rfc822/#z8][RFC822] Standard for ARPA Internet Text Messages, Address Specification[/url]
@jeffmottDec 07.2002 — #I was curious if anyone knew if RFC822 is outdated and been replaced by another recommendation. One of my concerns with it is the domain is allowed to contain symbol characters.
@jeffmottDec 07.2002 — #Here's a possible alterative. With an address of the form local-part "@" domain, [url=http://www.w3.org/Protocols/rfc822/#z8][RFC822][/url] was used for the local-part and [url=http://www.ietf.org/rfc/rfc2396.txt][RFC2396]Uniform Resource Identifiers (URI): Generic Syntax[/url] for the domain.
[font=courier new]var emailRE = new RegExp(/^[^()<>@,;:".[]x00-x20x7f-xff]+(?:.[^()<>@,;:".[]x00-x20x7f-xff]+)*@(???:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9].)*(?:[a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).?|[0-9]+.[0-9]+.[0-9]+.[0-9]+)(?::[0-9]*)?$/);[/font]
...though I've never known the local-part to contain symbols either (!#$%^&*{}'?/) grrr
Which document specifically and accurately describes the allowed syntax of an e-mail address?