关于判断一个字符串中是否有数字解决办法

关于判断一个字符串中是否有数字
请问各位朋友有没有什么方法可以判断字符串中包含数字不?如果包含并把数字字符单独提取出来?

------解决方案--------------------
regex r=new regex(@"(\d+)");
match m=r.match(你的字符串);

m.success表示是否存在
m.value就是这个数字值

如果有多个的话,要用nextmatch继续匹配
------解决方案--------------------
VB.NET code
Private Function RegInteger(ByVal str1 As String) As Integer
        Dim reg As New Regex("([0-9]+)", RegexOptions.Compiled)
        Dim mc As MatchCollection = reg.Matches(str1)
        Dim strBd As New StringBuilder()
        For Each m As Match In mc
            strBd.Append(m.Value)
        Next
        Return CInt(strBd.ToString)
    End Function