split CSV fields

Peter Otten __peter__ at web.de
Thu Nov 16 12:24:19 CET 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