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
\"$%^DDFG
This will give you your string
string result = new String("y0urstr1ngW1thNumb3rs". Where(x => Char.IsDigit(x)).ToArray());
And for the first 3 chars use .Take(3) before ToArray()
.Take(3)
ToArray()