Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
boxi0159yThe simple way:
> /(.)\1{2}/i.test("foo")
false
> /(.)\1{2}/i.test("fooo")
true
> /(.)\1{2}/i.test("foOo")
true
Related Rants
Well that's... an interesting way to check for three characters repeated in a row...
undefined
query
awful
alphabet