///
/// Finds a title of HTML file. Doesn't work if the title spans two or more lines.
///
/// HTML document.
/// Title string.
private string getTitle(string html)
{
Match m = Regex.Match(html, "(.*)");
if (m.Groups.Count == 2)
return m.Groups[1].Value;
return "(unknown)";
}
|