I found all sorts of really close answers, but not quite.
I need to look at a string and find any character that is used more than three times. Basically, to limit the password, to ban "mississippi", because it has more than 3 seconds. I think it should be only characters, but should be unicode. Therefore, I assume that (: alpha :) for the character set to match.
I found (\w)\1+{4,} that finds consecutive characters like ssss or missssippi, but not if they are not consecutive.
Working through other regular expression questions to see if anyone has answered this, but there is a lot of joy.
source share