邮件地址的问题

什么样的邮件地址才是有效的?看了Wikipedia的解释着实让人吓了一跳(留存备考):

Valid email addresses

Invalid email addresses

  • Abc.example.com (an @ character must separate the local and domain parts)
  • [email protected] (character dot(.) is last in local part)
  • [email protected] (character dot(.) is double)
  • A@b@[email protected] (only one @ is allowed outside quotation marks)
  • a"b(c)d,e:f;g<h>i[j\k][email protected] (none of the special characters in this local part is allowed outside quotation marks)
  • just"not"[email protected] (quoted strings must be dot separated, or the only element making up the local-part)
  • this is"not\[email protected] (spaces, quotes, and backslashes may only exist when within quoted strings and preceded by a backslash)
  • this\ still\"not\\[email protected] (even if escaped (preceded by a backslash), spaces, quotes, and backslashes must still be contained by quotes)

你可能感兴趣的:(邮件)