I've been trying to do this for some time now, but my Regex skills are pretty bad. I have this text
<td class="red">
One
</td>
<td>
Two
</td>
And I want to get the value of "Two". I've tried multiple things like
<td>\n(.*)\n</td>
<td class=\"red\">\nOne\n</td>\n<td>\n(.*)\n</td>
And this is my C# source
foreach (Match m in Regex.Matches(src, pattern, RegexOptions.IgnorePatternWhitespace))
{
MessageBox.Show(m.Groups[1].Value);
}
I tried changing the RegexOptions with no luck. If anyone could help me it'd be greatly appreciated.
Thank you
HTML agility packit would be much simpler rather then now