Python Regex replace

前端 未结 6 1312
野性不改
野性不改 2021-02-05 05:01

Hey I\'m trying to figure out a regular expression to do the following.

Here is my string

Place,08/09/2010,\"15,531\",\"2,909\",650

I

6条回答
  •  孤城傲影
    2021-02-05 05:46

    >>> from StringIO import StringIO
    >>> import csv
    >>> r = csv.reader(StringIO('Place,08/09/2010,"15,531","2,909",650'))
    >>> r.next()
    ['Place', '08/09/2010', '15,531', '2,909', '650']
    

提交回复
热议问题