Regular expressions in asp.net c# -


i have simple query. new regular expression validations in c#.

i want expression allow single alphabet means a-z or a-z. should not allow whole word. can suggest me expression?

the following should work:

[a-za-z]+ 

this expression allows 1 or more characters in specified range. , if want single character:

[a-za-z] 

Comments