RegEx to find two or more consecutive chars

后端 未结 4 1150
小鲜肉
小鲜肉 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:51

    I'm pretty sure you can just use [A-z] instead of the [a-zA-Z] to get small and upper case alpha chars http://www.w3schools.com/jsref/jsref_obj_regexp.asp

提交回复
热议问题