I have a string in python in this format:
The "" above is to show that it is a string. Now I want to parse this string until I hit the first '' (an empty element after col3 in above example) and form a list with elements before this. So based on the sample example above the list that I should get will be ['col1', 'col2', 'col3']. How can I do this in python?