I'm trying to check if a word have three or more repeating 'two letters pare', But the expressing returns true only if the same letter is repeated. Why?
(([a-z])([^\1]))\1\2{2,}
^ ^ ^ ^ ^
1 2 3 4 5
1) any letter (captured set \1)
2) any character that is not set 1 (captured set \2)
3) captured \1 again
4) captured \2 again
5) at least twice
words that should return TRUE: asasasassafasf, ereeeerererere, dddddtrtrtrtruuuuuuuu
words that should return FALSE: dddddddd, rrrrrrrrrrlkajf, fffffffssssssytytfffffff