I\'m trying to find the most pythonic way to split a string like
\"some words in a string\"
into single words. string.split(\' \')
string.split(\' \')
How about:
re.split(r'\s+',string)
\s is short for any whitespace. So \s+ is a contiguous whitespace.
\s
\s+