<p>I am having an string like this</p>

<p>string str = "dfdsfdsf8fdfdfd9dfdfd4"</p>

<p>I need to check whether the string contains number by looping through the array.</p>

What about a regular expression:
```
```
bool val = System.Text.RegularExpressions.Regex.IsMatch(str, @"\d");
```
```