import re;print(re.findall("((.)\\2*)","hhelllooo"));
Standard input is empty
[('hh', 'h'), ('e', 'e'), ('lll', 'l'), ('ooo', 'o')]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!