Here's my string I got from a csv:
string input = "Volume,447,\"4,325\",142,144";
what I want in my array lines:
447
4,325
142
144
What I tried:
string[] volumes;
if (input.Contains(",\"")) // if they're all double value, it works
volumes = input.Split(new[] {",\""}, StringSplitOptions.None);
else
volumes= input.Split(','); // if they're all integer value it works
else
// what to do if they have both double and integer?