字符"@"功能是转换所有转义字符,试试:string rex="@"+"<title>(?<title> .* "+key+ ".*?)</title>";
Regex regtitle=new Regex(rex,RegexOptions.Compiled);