For matching the same character repeated 3 or more times consecutively, try:
([a-zA-Z0-9])\1{2,}
Sample matches (tested both here and here): AABBAA
(no matches), AABBBAAA
(matches BBB
and AAA
), ABABABABABABABA
(no matches), ABCCCCCCCCCC
(matches CCCCCCCCCC
).