I have a string like this:
\"o1 1232.5467 1232.5467 1232.5467 1232.5467 1232.5467 1232.5467\"
How do I extract only \"o1 1232.5467\"?>
\"o1 1232.5467\"
A straightforward approach would be the following:
string[] tokens = str.Split(' '); string retVal = tokens[0] + " " + tokens[1];