I am having an string like this
string str = "dfdsfdsf8fdfdfd9dfdfd4"
I need to check whether the string contains number by looping through the array.
What about a regular expression:
bool val = System.Text.RegularExpressions.Regex.IsMatch(str, @"\d");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With