I have a string with the format:
s = "[(1,2,'foe'), (3,5,'bar'), ...]"
I need to extract each tuple using regular expressions.
I tried stripping '[' and ']' and then apply
re.findall(r'\((\d+),(\d+),(.+)\)', s[1:-1])
and other variants but cannot make it work.
[(1, [(2, [(3, [...])])])]