string[] RexStr = new string[3] { "\\$pagetitle\\$", "\\$keywords\\$", "\\$description\\$" };
string[] RtnStr = new string[3] { "Title", "Keyword", "Description" };
for (int k = 0; k < RexStr.Length; k++)
{
Regex MyRegex1 = new Regex(RexStr[k], RegexOptions.IgnoreCase);
if (MyRegex1.IsMatch(GetHtml))
{
GetHtml = MyRegex1.Replace(GetHtml.ToString(), model.RtnStr[k].ToString());
}
}