List<string> pages = new List<string>(); String regex = "<span class=\"prime-message\"> $1 </span>"; MatchCollection th = Regex.Matches(data, regex, RegexOptions.Singleline); foreach (Match i in th) { string target=i.Groups[0].Value; target=target.Replace("<span>",string.Empty); target=target.Replace("</span>",string.Empty); . . . . .
MultiLine
SingleLine
string to search within: "<span class="\"prime-message\""> $1 </span>" pattern = "<span\b[^>]*>(.*?)</span>" returned value: $1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)