Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 不允许“;的电子邮件正则表达式:”;和“”;人物_Asp.net_Regex_Validation_Email - Fatal编程技术网

Asp.net 不允许“;的电子邮件正则表达式:”;和“”;人物

Asp.net 不允许“;的电子邮件正则表达式:”;和“”;人物,asp.net,regex,validation,email,Asp.net,Regex,Validation,Email,\w+([-+.]\w+)@\w+([-.]\w+)。\w+([-.]\w+)* 我有这个正则表达式,我想对它进行更新,以防止最终用户输入“:”和“;”字符。谢谢你Alex Brown我做了你的建议,效果很好 ^\w+([-+.]\w+)@\w+([-.]\w+)。\w+([-.]\w+*$)我在该正则表达式中看不到与冒号或分号匹配的任何内容。请尝试此“测试”;test@example.com".. 它当然会通过:regexp是匹配的test@example.com-不是全部,我需要它不通过电子

\w+([-+.]\w+)@\w+([-.]\w+)。\w+([-.]\w+)*


我有这个正则表达式,我想对它进行更新,以防止最终用户输入“:”和“;”字符。

谢谢你Alex Brown我做了你的建议,效果很好


^\w+([-+.]\w+)@\w+([-.]\w+)。\w+([-.]\w+*$)

我在该正则表达式中看不到与冒号或分号匹配的任何内容。请尝试此“测试”;test@example.com".. 它当然会通过:regexp是匹配的test@example.com-不是全部,我需要它不通过电子邮件,如“测试;test@example.com"