<p style="color: rgb(34, 34, 34); font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: normal;">My name is Faysal </p>
I want to parse only the String "My name is Faysal". I've written the following snippets,but it returns nothing. What should I need to modify?
WebClient web = new WebClient();
String html = web.DownloadString("http://www.dmp.gov.bd/application/index/pressdetails/press_159");
MatchCollection m1 = Regex.Matches(html, "<p style=\"color: rgb(34, 34, 34); font-family: Arial, Verdana, sans-serif; font-size: 12px; line-height: normal;\">\\s*(.+?)\\s*</p>", RegexOptions.Singleline);
foreach (Match m in m1) {
String head = m.Groups[1].Value;
Console.WriteLine(head);
}