I'm making a password checking. One of those functions is to find if the inputted password is consecutively repeated. I do not have codes yet because I don't know how to do it.
I found this one RegEx match two or more same character non-consecutive but it only match repeated commas.
Here's are the scenarios:
5236aaa121 - Repeated pattern because a
is consecutively repeated 3 times
2312aa32aa - No repeated character
111111asd - Repeated pattern because 1
is consecutively repeated many times