I have a little problem with getting items from webbrowser.document.
the part of code in document tha i need is this>
primary-text,7.gm2-body-2">**ineedthis.se**</div> <div jstcache="194"
I need to parse the "ineedthis.se" that will be different every time.
my code is this
if (webBrowser1.ReadyState == WebBrowserReadyState.Complete)
{
System.IO.StreamReader sr = new System.IO.StreamReader(webBrowser1.DocumentStream.ToString());
string rssourcecode = sr.ReadToEnd();
Regex r = new Regex("7.gm2-body-2 > </ div > < div ", RegexOptions.Multiline);
MatchCollection matches = r.Matches(rssourcecode);
// Dim r As New System.Text.RegularExpressions.Regex("here need splitersorsomething", RegexOptions.Multiline)
foreach (Match itemcode in matches)
{
listBox1.Items.Add(itemcode.Value.Split(here need splites).GetValue(2));
}
}
so. can you please help me with right splitters ? thanks a lot