string pattern = @"(?<=<)input\s?type=[""]?hidden[""]?\s?name=[""]?(?<name>\w+)[""]?\s?(value=[""]?(?<value>\s?|\w+)[""]?)?(?=>)";
Regex r = new Regex(pattern, RegexOptions.IgnoreCase);
MatchCollection mc = r.Matches(data);
foreach (Match m in mc)
{
string s = m.Value;
string s1 = m.Groups[0].Value;
string s2 = m.Groups[1].Value;
string s3 = m.Groups[2].Value;
string s4 = m.Groups["name"].Value;
string s5 = m.Groups["value"].Value;
}
