1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/// <summary>
/// Gets the HTML tabels.
/// </summary>
/// <param name="html">The HTML.</param>
/// <returns></returns>
private List<string> GetHtmlTabels(string html)
{
string tablePattern = "<table.*?>(.*?)</table>";
MatchCollection tableMatches = Regex.Matches(html, tablePattern, RegexOptions.Singleline);
List<string> tableContents = new List<string>();
foreach (Match match in tableMatches)
tableContents.Add(match.Value);
return tableContents;
}
|