Sep-01-2018, 12:09 AM
i would like to split a line by whitespace into items where there may be items with quoted whitepace. for example i might have a string like this:
foo "a b 'c'" barand i would like to get a list equivalent to
["foo","a b 'c'","bar"]
. this means parsing the line string with an understanding of whitespaces and quotes. anyone know anything that will strictly parse the line and safely bail out if is not just right? support for triple quotes is a plus but not required.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.