I have a string in the form of:
integer, integer, a comma separated list of strings, integer
for example:
"0, 0, ['REFERENCED', 'UPTODATE', 'LRU'], 1"
I want to return this substring ['REFERENCED', 'UPTODATE', 'LRU']
I thought of using split(", ") and then joining things together but it will just be so complicated. How to do that with regex?
ast.literal_eval?[or]characters?