CSV Parsing

前端 未结 13 2122
攒了一身酷
攒了一身酷 2020-12-17 04:45

I am trying to use C# to parse CSV. I used regular expressions to find \",\" and read string if my header counts were equal to my match count.

Now this

13条回答
  •  既然无缘
    2020-12-17 05:37

    I have just try your regular expression in my code..its work fine for formated text with quote ...

    but wondering if we can parse below value by Regex..

    "First_Bat7679",""NAME","ENAME","FILE"","","","From: "DDD,_Ala%as"@sib.com"
    

    I am looking for result as:

    'First_Bat7679'
    '"NAME","ENAME","FILE"'
    ''
    ''
    'From: "DDD,_Ala%as"@sib.com'
    

    Thanx

提交回复
热议问题