vb Code:
' Regex match Dim options As RegexOptions = RegexOptions.None Dim regex As System.Text.RegularExpressions.Regex = New System.Text.RegularExpressions.Regex("<link\b[^>]*>(.*?)</link>") Dim input As String = Me.TextBox1.Text ' Get matches Dim matches As MatchCollection = regex.Matches(input) Dim i As Integer For i = 0 To matches.Count - 1 ' TODO: Do something with result System.Windows.Forms.MessageBox.Show(matches(i).Groups(1).Value, "Match") Next i





Reply With Quote