I have email field in my page, which i am validating using regular expression validator provided my asp.net. I am using same validation expression as given along with validator for emails i.e
ValidationExpression=”\w+([-+.’]\w+)@\w+([-.]\w+).\w+([-.]\w+)*”
It is working fine but problem comes when I tried giving non-english letters e.g.
è é ü û ă etc.
But my problem is, when i use same expression in javascript it allows these characters, even at server side also same expression allows these characters.
I think ‘\w’ allows all alphanumeric characters as well as non english characters but
I dont know why it is not allowing when using it in validator.
Please suggest if I did anythig wrong.
This is a limitation of the ECMAScript standard; f.e. in .NET
\wdoes also match non-english chars.The simplest solution is to turn off client-side validation as you are working with ASP.NET, so the server-side validator (which uses the .NET implementation) will validate accordingly.