String split with " and/or ' and/or \<sep>

Kurt Mueller kurt.mueller at aerodynamics.ch
Tue Jun 24 04:56:21 EDT 2008


How to (super)split a string (literal) containing " and/or ' and/or \<sep>.

example:

' a  "  b b   "  c\ c '.supersplit(' ')
->
['a', '  b b   ', 'c c']


Thanks and Grüessli
-- 
Kurt Müller:
kurt.mueller at aerodynamics.ch




More information about the Python-list mailing list