fork download
  1. import re;
  2. print(re.findall("((.)\\2*)","hhelllooo"));
Success #stdin #stdout 0.03s 9440KB
stdin
Standard input is empty
stdout
[('hh', 'h'), ('e', 'e'), ('lll', 'l'), ('ooo', 'o')]