Is it possible to write a query where we get all those characters that could be parsed into int from any given string?
For example we have a string like: \"$%^DDFG
The following should work.
var myString = "$%^DDFG 6 7 23 1";
//note that this is still an IEnumerable object and will need
// conversion to int, or whatever type you want.
var myNumber = myString.Where(a=>char.IsNumber(a)).Take(3);
It's not clear if you want 23
to be considered a single number sequence, or 2 distinct numbers. My solution above assumes you want the final result to be 672