I have a simple query. I am new to regular expression validations in C#.
I want some expression which would allow only single alphabet that means az or AZ. It should not allow whole word. Can anyone suggest me an expression?
The following should work:
[a-zA-Z]+
This expression allows one or more characters in the specified range. And if you want only a single character:
[a-zA-Z]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.