I need to parse the string for the doubles it contains and store it in a list of doubles so later I can take the values and store them in a variable.
You can see on the picture in the richtextbox I have the string content now I tried to parse it like this
public void GetAll()
{
List<double> doubles = new List<double>();
MatchCollection matches = Regex.Matches(buff, @"(([-]|[+])?\d+[.]\d+)");
foreach (Match match in matches)
{
string val = match.Groups[1].Value;
doubles.Add(double.Parse(val));
}
}
and it doesnt store the doubles in the list.
I need them stored in order they show up doubles[0] = value of vv_in, doubles[1] = values of vv_out and so on.

double.TryParseinstead of regex. If it returns true, you have a valid double in its out-parameter.buff? is it a string containing the entire text from the textbox?