(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

(Solved) Need to combine these two javascripts

You can’t create two variables with the same name, or two functions with the same name – not in the same scope, anyway. But you can combine the bodies of your two loaded() functions into a single function. (Or you can rename them loaded1 and loaded2 and call them individually, but I wouldn’t do that.) … Read more