I have this line of code
bool containsInt = "Sanjay 400".Any(char.IsDigit)
What I am trying to do is extract the 400 from the string but
Any(char.IsDigit)
only returns a true value. I am very new to coding and c# especially.
>Solution :
int result = int.Parse(string.Concat("Sanjay 400".Where(char.IsDigit)));