Imports System.Text.RegularExpressions
Module Module1
Sub Main
Dim txt As String ="11:Jan:2019 ""This is an Example!"""
Dim re1 As String="(\d+)"
Dim re2 As String=".*?"
Dim re3 As String="(\d)"
Dim r As Regex = new Regex(re1+re2+re3,RegexOptions.IgnoreCase Or RegexOptions.Singleline)
Dim m As Match = r.Match(txt)
If (m.Success) Then
Dim int1=m.Groups(1)
Dim d1=m.Groups(2)
Console.WriteLine("("+int1.ToString()+")"+"("+d1.ToString()+")"+"")
End If
Console.ReadLine()
End Sub
End Module
|