I have some text file like this, with several 5000 lines:
5.6 4.5 6.8 \"6.5\" (new line) 5.4 8.3 1.2 \"9.3\" (new line)
so the last t
IMHO, the most universal doublequote stripper is this:
In [1]: s = '1 " 1 2" 0 a "3 4 5 " 6' In [2]: [i[0].strip() for i in csv.reader(s, delimiter=' ') if i != ['', '']] Out[2]: ['1', '1 2', '0', 'a', '3 4 5', '6']