How to Split a String

Siah siasookhteh at
Thu Nov 29 21:12:20 CET 2007


I need to convert the string: '(a, b, "c", d, "e")' into the following
list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. I usually
use the split function, but this mini-monster wouldn't properly get
split up due to those random quotations postgresql returns to me.

Please help me with this,

More information about the Python-list mailing list