How, in Python, can I use shlex.split() or similar to split strings, preserving only double quotes? For example, if the input is "hello, world" is what 'i say' then the output would be ["hello, world", "is", "what", "'i", "say'"].
How, in Python, can I use shlex.split() or similar to split strings, preserving only
Share
1 Answer