Escaping commas within parens in CSV parsing?

Devan L devlai at gmail.com
Thu Jun 30 23:27:31 EDT 2005


Oops, the above code doesn't quite work. Use this one instead.
re.findall(r'(.+? (?:\(.+?\))?)(?:,|$)',yourtexthere)




More information about the Python-list mailing list