(Solved) How to extract numeric values from string?
You could use regular expression to do this. Although this pattern is very naively implemented, it is a start. I’ve used Tuple instead of Vector, but you can easily change that yourself. static readonly Regex VectorRegex = new Regex(@”a:(?<A>[0-9]+\.[0-9]+);b:(?<B>[0-9]+\.[0-9]+);c:(?<C>[0-9]+\.[0-9]+)”, RegexOptions.Compiled); static Tuple<double, double, double> ParseVector(string input) { var m = VectorRegex.Match(input); if (m.Success) { double … Read more