Split a string ignoring quoted sections

前端 未结 13 2396
别跟我提以往
别跟我提以往 2020-12-06 00:15

Given a string like this:

a,\"string, with\",various,\"values, and some\",quoted

What is a good algorithm to split this based on

13条回答
  •  半阙折子戏
    2020-12-06 00:26

    The author here dropped in a blob of C# code that handles the scenario you're having a problem with:

    CSV File Imports in .Net

    Shouldn't be too difficult to translate.

提交回复
热议问题