问题描述
我想检查用户是否输入了yahoo(特定域名)电子邮件地址我该如何在c#windows app中执行此操作。
im使用此模式
mRegexpp = new正则表达式(@^([A-ZA-Z0-9_\ - ])([A-ZA-Z0-9_\-\] *)@(\ [((25 [0-5] | 2 [0-4] [0-9] | 1 [0-9] [0-9] | [1-9] [0-9] | [0-9])\){3}。| ((([A-ZA-Z0-9\ - ] +)\)+。))([A-ZA-Z] {2,} |(25 [0-5] | 2 [0-4 ] [0-9] | 1 [0-9] [0-9] | [1-9] [0-9] | [0-9])\])$);
i还希望它验证用户输入了雅虎电子邮件地址。
i want to check that user entered the yahoo(particular domain) email address how can i do that in c# windows app.
i m using this pattern
mRegexpp = new Regex(@"^([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])$");
i also want that it verify that user entered a yahoo email address.
推荐答案
这篇关于我如何验证电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!