[C#] Could someone tell me what's wrong with this?
using (WebClient wc = new WebClient())
{
string html = wc.DownloadString("URL");
var regex = new Regex("(?<=<p>)(.*\n?)(?=</p>)");
MatchCollection col = regex.Matches(html.ToString());
foreach(Match match in col) {
listBox2.Items.Add(match.Value.ToString());
}
} Any help would be appreciated. Thank you.
-
IdeaBox -
Thanks - 1 reply
{{ DiscussionBoard.errors[8427745].message }}-
Rubik -
Thanks
{{ DiscussionBoard.errors[8427766].message }} -
-
-
IdeaBox -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[8427791].message }}-
Rubik -
Thanks - 1 reply
{{ DiscussionBoard.errors[8427817].message }}-
Brandon Tanner -
Thanks - 1 reply
Signature{{ DiscussionBoard.errors[8428238].message }}-
IdeaBox -
Thanks - 1 reply
{{ DiscussionBoard.errors[8428299].message }}-
Brandon Tanner -
Thanks
Signature{{ DiscussionBoard.errors[8428373].message }} -
-
-
-
-
-
IdeaBox -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[8427854].message }}-
Rubik -
Thanks
{{ DiscussionBoard.errors[8427880].message }} -
-
-
IdeaBox -
Thanks
{{ DiscussionBoard.errors[8427882].message }} -
-
IdeaBox -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[8427886].message }}-
Rubik -
Thanks
{{ DiscussionBoard.errors[8427896].message }} -
-
-
Rubik -
Thanks
{{ DiscussionBoard.errors[8428435].message }} -