Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Long Repeat by s_o_va
import re
def long_repeat(line):
match_list = []
for i in re.finditer(r"(.)\1*", line):
match_list.append(len(i.group()))
if not match_list: return 0
return (max(match_list))
July 26, 2018