Please help me.... See the code below.
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 request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("**HERE IS MY DESIRED URL**")
Dim response As System.Net.HttpWebResponse = request.GetResponse
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim rssourcecode As String = sr.ReadToEnd
Dim r As New System.Text.RegularExpressions.Regex("<a class=""category"" href=""**HERE IS THE URL**"">**HERE SOME TEXt**</a><br /> ")
Dim matches As MatchCollection = r.Matches(rssourcecode)
For Each itemcode As Match In matches
Next
End Sub
End Class
I want to get data "HERE SOME TEXt" list in a combobox and respective "HERE IS THE URL" link in a textbox.
see as example 1
see as example 2
remember : in source code there have a lot of links. i want the link exack match as
<a class="category" href="link">name</a><br />
please help me....