I have a regex on a RegularExpressionValidator .NET control: ^\w{4,11}$
Works fine. It allows the string length between 4 and 11.
I would like it to allow space and special characters like “æ” “ø” “å” (danish characters).
Any suggestions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How about
^.{4,11}$? Or just check that the line lenght is between 4 and 11.If this is not suitable, I think it is easier to match the characters you don’t allow…