Leo Jay wrote: > I want to split a string like this: > 'abc def "this is a test" ok' > into: > ['abc', 'def', 'this is a test', 'ok'] > > is there any lib meet my need?
>>> s = 'abc def "this is a test" ok' >>> import shlex >>> shlex.split(s) ['abc', 'def', 'this is a test', 'ok'] </F> -- http://mail.python.org/mailman/listinfo/python-list