System.Text.RegularExpressions Overview
first you need to import the library for that write following code
Imports System.Text.RegularExpressions
at the start of your source code.
Sub CheckProgram()
'The regex pattern "\d+" matches one or more
digit characters together
Dim RegularExpression As
Regex = New Regex("\d+")
Dim match As Match = RegularExpression.Match("Dot 55 Perls")
If match.Success Then
'If the match is successful, we print its value, which is
"55".
Console.WriteLine(match.Value)
End If
End Sub
No comments:
Post a Comment