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\"
Use a regex: .
Match m = Regex.Match(text, @"(.+? .+?) "); if (m.Success) { do_something_with(m.Groups[1].Value); }