split CSV fields

Peter Otten __peter__ at web.de
Thu Nov 16 06:24:19 EST 2006


John Machin wrote:

> | >>> s='"123","a,b,\"c\"",5.640'

Note how I fixed the input:

>>> '"123","a,b,\"c\"",5.640'
'"123","a,b,"c"",5.640'

>>> '"123","a,b,\\"c\\"",5.640'
'"123","a,b,\\"c\\"",5.640'

Peter



More information about the Python-list mailing list