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);
}

Vishal JadavRank #1,692 · 901 reputationPosted Dec 24, 2015, 3:02 AM EST
Ravi PatelRank #439 · 5.7K reputationPosted Dec 24, 2015, 3:07 AM EST