If you are looking for the same character three times in a row, you can do this:
(\w)\1\1
if you want to find the same character three times anywhere on the line, you need to put a dot and an asterisk between the parts of the expression above, for example:
(\w).*\1.*\1
.* matches any number of any character, so this expression must match any line that has any character of the word that appears three or more times, with any number of any characters between them.
Hope this helps.
Spudley
source share