On Wed, Jun 13, 2012 at 10:06 PM, Jose H. Martinez <josehmartin...@gmail.com> wrote: > string.split(',') will give you an array. > > Example: > > 'AAA,"BBBB,CCCC,DDDD",EEE,FFF,GGGÂ '.split(',') > > ['AAA', '"BBBB', 'CCCC', 'DDDD"', 'EEE', 'FFF', 'GGG']
But it incorrectly splits the quoted part. A proper CSV parser (like the csv module) should leave that part as a single string, even though it contains commas. -- http://mail.python.org/mailman/listinfo/python-list