Quote aware split

Tim Arnold tiarno at sas.com
Wed May 16 10:05:12 EDT 2007


"Ondrej Baudys" <obaudys at gmail.com> wrote in message 
news:mailman.7721.1179276620.32031.python-list at python.org...
> Hi,
>
> After trawling through the archives for a simple quote aware split
> implementation (ie string.split-alike that only splits outside of
> matching quote) and coming up short,  I implemented a quick and dirty
> function that suits my purposes.

Take a look at pyparsing--you'll like it I think.
esp. http://pyparsing.wikispaces.com/Examples

--Tim Arnold





More information about the Python-list mailing list