I need write a regular expression for RegularExpressionValidator ASP.NET Web Controls.
The regular expression should ALLOW all alphabetic characters but not numbers or special characters (example: |!ӣ$%&/().
Any idea how to do it?
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.
validates a string of length 1 or greater, consisting only of ASCII letters.
does the same for international letters, too.
Explanation:
Effectively, you get
\wminus (\dand_).Or, you could use the fact that ASP.NET supports Unicode properties:
validates a string of Unicode letters of length 1 or more.