RegEx to find two or more consecutive chars

后端 未结 4 1145
小鲜肉
小鲜肉 2020-12-24 04:36

I need to determine if a string contains two or more consecutive alpha chars. Two or more [a-zA-Z] side by side. Example:

\"ab\" -> valid
\"a         


        
4条回答
  •  天涯浪人
    2020-12-24 04:45

    Personnaly (as a nooby) I've used:

    [0-9][0-9]+.
    

    But the one from Simon, is way better ! =D

提交回复
热议问题