you only have <br>, so what you can do:1. get everything between <td>...</td>
2. split with <br>for example: string s = "....."; Regex re = new Regex(@"<td[^>]*>([\s\S]+?)</td>",RegexOptions.IgnoreCase);//|RegexOptions.Singleline);
Match m = re.Match(s);
if (m.Success)
{
string s2= m.Groups[1].Value;
//Console.WriteLine(s2); string[] slist = Regex.Split(s2,"<br>",RegexOptions.IgnoreCase);
foreach (string s3 in slist)
{
Console.WriteLine(s3);
}
}
2. split with <br>for example: string s = "....."; Regex re = new Regex(@"<td[^>]*>([\s\S]+?)</td>",RegexOptions.IgnoreCase);//|RegexOptions.Singleline);
Match m = re.Match(s);
if (m.Success)
{
string s2= m.Groups[1].Value;
//Console.WriteLine(s2); string[] slist = Regex.Split(s2,"<br>",RegexOptions.IgnoreCase);
foreach (string s3 in slist)
{
Console.WriteLine(s3);
}
}
Match m = re.Match(s);
if (m.Success)
{
foreach(Capture c in m.Groups["val"].Captures)
Console.WriteLine(c.Value);
}