CSV Parsing

前端 未结 13 2126
攒了一身酷
攒了一身酷 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:41

    CSV, when dealing with things like multi-line, quoted, different delimiters* etc - can get trickier than you might think... perhaps consider a pre-rolled answer? I use this, and it works very well.

    *=remember that some locales use [tab] as the C in CSV...

提交回复
热议问题