Hi all,
I'm just learning C# at the moment and I'm playing with extracting data from webpages using Regex.
Im having problems getting data out of an unordered list. This is the HTML:
I'm trying to get the data that says "posted 13 hours ago" but I cant get it to work. (I'll post my attempt below)
Any help would be very much appreciated.
Many Thanks and Kind Regards,
James Webb
_____________________________________________________________________
My Code:
public void GetDateAdded()
{
string UserURL = textBox1.Text;
WebClient MyWebClient = new WebClient();
String HTMLString = MyWebClient.DownloadString(UserURL);
MatchCollection MatchedDates = Regex.Matches(HTMLString, "", RegexOptions.Singleline);
}
Ravi PatelPosted Dec 24, 2015, 8:07 AM
Vishal JadavPosted Dec 24, 2015, 8:02 AM