regex i vb.net
Jeg har følgende kode:Imports System.Net
Imports System.Text.RegularExpressions
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim newPage As String = GetWebPage("SidenSomSkalHentes.dk")
Dim getData As New Regex("RegexSøgningHer")
Dim recivedData As MatchCollection = getData.Matches(newPage)
Dim showData As Match
For Each showData In recivedData
ListBox1.Items.Add(showData.Groups(1))
Next
End Sub
Private Function GetWebPage(ByVal url As String) As String
Dim web As New WebClient()
Return web.DownloadString(url)
End Function
End Class
Hvordan laver jeg så man kan lave en regex søgning mere inden jeg outputter det som den har fundet??
Så resultatet i recivedData søges igennem igen for noget andet!