Quote-aware string splitting
Tony Meyer
t-meyer at ihug.co.nz
Mon Apr 25 22:24:06 EDT 2005
> I need to split a string as per string.strip(), but with a
> modification:
> I want it to recognize quoted strings and return them as one
> list item,
> regardless of any whitespace within the quoted string.
See the recent python-tutor thread starting here:
<http://mail.python.org/pipermail/tutor/2005-April/037288.html>
For various solutions. Or just use a regular expression, which is what the
thread concludes.
=Tony.Meyer
More information about the Python-list
mailing list