Basically what I want to do is get text from a HTML web document,
<a href="showthread.php?tid=2632829">1</a>
<a href="showthread.php?tid=2342818">1</a>
<a href="showthread.php?tid=2342818">1</a>
<a href="showthread.php?tid=2342818">1</a>
....
....
All these link are in different lines and a lot of other scripts in between them.
right now the catch is I want to search for "1</a>" in these documents and get the link
showthread.php?tid=11digitnumber
I then want to place them in a richtextbox line by line say
showthread.php?tid=11digitnumber
showthread.php?tid=11digitnumber
showthread.php?tid=11digitnumber
...
What I have done so far is got the source of webpage using
source = WebBrowser1.DocumentText.ToString()
Earlier I had some luck using
dim ss,variable as string
variable = ss.Substring(ss.LastIndexOfAny(">1</a> ") - 27, 27)
output:
showthread.php?tid=11digitnumber
but I am only able to use this once,besides there are many such files in the document