This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
开发者_Python百科
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 \]
精彩评论