I have a string that looks like this:
-2.2,1.1-6.9,2.3-12.8,2.3
And I want to write a function ParseString() which would return a list of doubles with these elements:
-2.2
1.1
-6.9
2.3
-12.8
2.3
The problem I have is that the minus sign is acting like a delimiter, but also has semantic meaning (signifies negative number). I am quite inexperienced with regular expressions and I am stuck on this. Can any expert out there help me out with this? I am writing this in C#.