RegularExpressionValidator控件不允许使用法语字符的电子邮件.例如:é [英] RegularExpressionValidator control not allowing emails with french characters. For example: é
本文介绍了RegularExpressionValidator控件不允许使用法语字符的电子邮件.例如:é的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们与许多法国客户打交道,这是我们注册表格中的问题.
We deal with many french clients and this is a problem on our sign up forms.
如何告诉控件允许使用法语字符?
How can I tell the control to allow for french characters?
最终,正则表达式是Microsoft提供的默认正则表达式:
Ultimately, the regex is the default one supplied by Microsoft:
\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
推荐答案
基本上,无论是否有重音,正则表达式的结果都不应有所不同.(请参阅 Regex重音不敏感?以供参考)
Well basically the result of the regex should not be different whether there are accents or not. (See Regex accent insensitive? for reference)
但是,除此之外-我不知道该重音在电子邮件中是否有效.
But besides - i was not aware, that accents are valid within emails.
这篇关于RegularExpressionValidator控件不允许使用法语字符的电子邮件.例如:é的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文