Ragex /电子邮件字符串Patters [英] Ragex/ Email string Patters

查看:68
本文介绍了Ragex /电子邮件字符串Patters的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


最近,我发现了一个带有.bank域名的电子邮件地址,而不是我们传统的.co.za或.com或.uk域名


是否有新的电子邮件域,因为当我使用我的C#代码发送批量电子邮件时,这种电子邮件地址被排除在外,因为它们没有通过有效性检查。我目前的字符串模式如下,请紧急建议。此外,如果还有其他域名,
我可能会更新Ragex或字符串模式。


string pattern = @" ^ [ - α-ZA-Z0-9] [ - A-ZA-Z0-9] * @ [ - A-ZA-Z0-9] +(\ [ - A-ZA-Z0-9 ] +)* \                  (COM | EDU |信息| GOV | INT |密耳|净|有机| BIZ |名称|博物馆|鸡舍|航空|亲| TV | [A-ZA-Z] {2})$英寸;


谢谢


彼得

解决方案

你好,


没有正则表达式100%准确,也没有任何验证免费库 这是100%。


我建议查看以下开源库并阅读有关验证的信息。



Hi Guys,

Recently I came across an email address with .bank domain as opposed to our traditional .co.za or .com or .uk domains

Are there new email domains as when I send bulk email using my C# code this kind of email address gets excluded as they do not pass the validity check. My current string pattern is as below please urgently advise. Also if there are any other domains as well, may I have an update Ragex or string pattern please.

string pattern = @"^[-a-zA-Z0-9][-.a-zA-Z0-9]*@[-.a-zA-Z0-9]+(\.[-.a-zA-Z0-9]+)*\.                  (com|edu|info|gov|int|mil|net|org|biz|name|museum|coop|aero|pro|tv|[a-zA-Z]{2})$";

Thanks

Peter

解决方案

Hello,

There are no regular expressions that are 100 percent accurate nor are there any validation free libraries  that are 100 percent.

I would suggest looking at the following open source library and read the information about validation.

https://github.com/tallesl/net-EmailAddress


这篇关于Ragex /电子邮件字符串Patters的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆