python 2.7 code
cStr = \'\"aaaa\",\"bbbb\",\"ccc,ffffd\"\' newStr = cStr.split(\',\') print newStr # result : [\'\"aaaa\"\',\'\"bbbb\"\',\'\"ccc\',\'ffffd\
Try to use CSV.
import csv cStr = '"aaaa","bbbb","ccc,ffffd"' newStr = [ '"{}"'.format(x) for x in list(csv.reader([cStr], delimiter=',', quotechar='"'))[0] ] print newStr
Check Python parse CSV ignoring comma with double-quotes