human
using regular expression to split string in python
assistant
Here is some code to use regex pattern '((.+?)\\2+)' to split string '44442(2)2(2)44'

[m[0] for m in re.compile('((.+?)\\2+)').findall('44442(2)2(2)44')]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.