I have a string which is like this:
this is \"a test\"
I\'m trying to write something in Python to split it up by space while ignoring spac
You want split, from the built-in shlex module.
split
>>> import shlex >>> shlex.split('this is "a test"') ['this', 'is', 'a test']
This should do exactly what you want.