Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re.findall solution in Clear category for Long Repeat Inside by popomin
import re
def repeat_inside(text):
x = [i for i,k in re.findall(r"((.{2,})\2+)",text) + re.findall(r"((.)\2+)",text)]
return sorted(x ,key = len,reverse = True)[0] if x else ""
Dec. 6, 2017