How can I split by fields below (this is sql format)? Previously I use to just split by ', ' the problem it fails if that character sequence is within the quotes. Unfortunately I also can't split by quotes because the numbers don't have any.
mystring = "(1, 'data, ', 'data_two, ', 'Test 34', '', 'gb', 1, '1')"
mystring.split(', ')
I need to get
'1'
'data'
'data_two, '
'Test 34'
''
'gb'
'1'
'1'