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