I have a list of strings and those strings are lists. Like this: [\'[1,2,3]\',\'[10,12,5]\'], for example. I want to get a list of lists or even every list there: <
[\'[1,2,3]\',\'[10,12,5]\']
Use regular expressions:
new_list = [[int(j) for j in re.findall(r'\d+', i)] for i in old_list]