Python Regex replace

前端 未结 6 1388
野性不改
野性不改 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:52

    a = """Place,08/09/2010,"15,531","2,909",650""".split(',')
    result = []
    i=0
    while i

    Result:
    ['Place', '08/09/2010', '"15,531"', '"2,909"', '650']
    Not a big fan of regular expressions unless you absolutely need them

提交回复
热议问题