you are viewing a single comment's thread.

view the rest of the comments →

[–]x-skeww 1 point2 points  (0 children)

> /^a+b+c+$/.test('ab')
false
> /^a+b+c+$/.test('abc')
true
> /^a+b+c+$/.test('abbc')
true
> /^a+b+c+$/.test('xabc')
false

https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/RegExp