I am looking for a regex that will find repeating letters. So any letter twice or more, for example:
booooooot or abbott
I won\'t know the
Just for kicks, a completely different approach:
if ( ($str ^ substr($str,1) ) =~ /\0+/ ) { print "found ", substr($str, $-[0], $+[0]-$-[0]+1), " at offset ", $-[0]; }