Can anyone tell me the regex for excluding numbers and special characters in ASP.NET? [closed]
How do I get the regular expression for excluding special charaters and numbers? Thanks in advance.
Try the following: ^[a-zA-Z]*$
possible regex
[^()[\]{}*&^%$#@!]+
this will match anything but ()[]{}*&^%$#@!
the [^...]+
is a "any character except ..." and the ]
must be escaped with \]
http://www.myregextester.com/?r=37f5dfd3
精彩评论