I am not well experienced with Regex but I have been reading a lot about it. Assume there\'s a string s = \'111234\' I want a list with the string split into
s = \'111234\'
Use re.finditer():
>>> s='111234' >>> [m.group(0) for m in re.finditer(r"(\d)\1*", s)] ['111', '2', '3', '4']