Find a number in a string
Imports System.Text.RegularExpressions
Dim regex As New Regex("\d+")
Dim match As Match = regex.Match("Ranjeet_8")
Dim Mval As String = ""
If match.Success Then
Mval = String.Format("Number found: " + match.Value & " at position " & match.Index.ToString())
Else
Mval = "Not found!"
End If
Response.Write(Mval)