Beispiel #1
0
 private static string[] Split(CsvConfiguration cf, string row)
 {
     return(Regex.Split(row, $"[\t{cf.Seperator}](?=(?:[^\"]|\"[^\"]*\")*$)")
            .Select(s => Regex.Replace(s.Replace("\"\"", "\""), "^\"|\"$", "")).ToArray());
     //this code from S.O : https://stackoverflow.com/a/11365961/9131476
 }