I have a requirement to find and extract a number contained within a string.
For example, from these strings:
string test = \"1 test\" string test1 =
You can do this using String property like below:
String
return new String(input.Where(Char.IsDigit).ToArray());
which gives only number from string.