How can I Split(',') a string while ignore commas in between quotes?

后端 未结 3 550
半阙折子戏
半阙折子戏 2020-12-03 08:22

I am using the .Split(\',\') method on a string that I know has values delimited by commas and I want those values to be separated and put into a string[]

3条回答
  •  执笔经年
    2020-12-03 09:06

    You should probably read this article: Regular Expression for Comma Based Splitting Ignoring Commas inside Quotes Although it is for Java, but the regular expression is the same.

提交回复
热议问题