A file contains lines like this:
'MEASUREMENT machine.b_runs "Bit \"machine runs\" Bit"'
What I want is to split it into a list which is like:
list = ['\'MEASUREMENT', 'machine.b_runs', 'Bit \"machine runs\" Bit']
So that the line is split by ' ' except the words between double quotes, by ignoring \"
How do I do this in python?
\"\\"Bit \"machine runs\" Bit"?