string title = Regex.Match(textBox1.Text, @"\<title\b[^>]*\>\s*(?<Title>[\s\S]*?)\</title\>", RegexOptions.IgnoreCase).Groups["Title"].Value; label2.Text = title;
<title>
title
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)