For example I have string:
aacbbbqq
As the result I want to have following matches:
(aa, c, bbb, qq)
The findall method will work if you capture the back-reference like so:
result = [match[1] + match[0] for match in re.findall(r"(.)(\1*)", string)]