sir i want to get data between to tag...
example:(showing in my view source)
<img class='stat_icon' src='/images/green.png'>
**data to be extracted**</a>
or like
<input type=hidden name=timestamp value='**data to be extracted**'>
for the first example i wrote like:
Imports System.Text.RegularExpressions
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim requestt As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("my desired link")
Dim responsee As System.Net.HttpWebResponse = requestt.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(responsee.GetResponseStream())
Dim sourcecodee As String = sr.ReadToEnd()
Dim pattern1 As String = "<img class='stat_icon' src='/images/red.png'> " & _
"(.*)</a>"
Dim m As Match = Regex.Match(sourcecodee, pattern1)
If m.Success Then
MsgBox(m.Groups(1).Value)
End If
End Sub
but nothing showing or appearning as msgbox.
please solve it and discus it with example as much as u can.