I have such a string
| 7 | 2 |39,93 |
and I need to split it into an array where the first element is "7", second "2" and third is "39,93"
I've came up with the following solution
var line = "| 7 | 2 |39,93 |";
line = line.Remove(0, 1);
string[] arr = Regex.Replace(line, @"\s+", "").Trim().Split('|');
I wonder if there is a better way to do this.
List<double>?