问题描述
http://msdn.microsoft.com/en-us/library/01escwtf.aspx
我们使用上面的URL中的代码进行验证.现在,在所有情况下都可以正常工作,但只有以下两种格式显示有效.
we are validate using code in above url. Now working fine all scenarios but only bellow two format are showing valid.
[email protected]
test.crs@example_.com
[email protected]
test.crs@example_.com
使用以下网址,我们可以找到有效或无效的电子邮件ID格式
we can find Email id format valid or not, Using bellow url
http://sqa.fyicenter.com/Online_Test_Tools/Email_Address_Format_Validator.php
您能否提供有效的正则表达式!
Can you give a valid Regular Expression!
感谢与问候,Swaroop
Thanks & Regards, Swaroop
推荐答案
您发布的2个电子邮件地址无效.您链接到的URL将其标识为无效,但MailAddress认为它是有效的.根据我对上面的地址 RFC语法有效,因为子域部分在字符集中仅包含有效字符.
The 2 email addresses you posted are not valid. The URL you linked to identifies it as invalid but MailAddress considers it valid. Based upon my interpretation of theRFC grammar the above addresses are valid because the subdomain portions contain only valid chars in the charset.
迈克尔·泰勒
http://msmvps.com/blogs/p3net
Michael Taylor
http://msmvps.com/blogs/p3net
这篇关于验证有效的电子邮件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!