I'm trying to split text into a list in Python, but I want to exclude text & spaces between double quotes. In short, something like this:
def splitdq(text):
# do spliting stuff here...
test = 'The "quick brown fox" jumps over the "lazy dog."'
print(splitdq(test))
>>> ["The", "quick brown fox", "jumps", "over", "the", "lazy dog."]
I found some solutions to that, but they either kept the quotes or just didn't work. So, is there a possible way to do just that in Python?