日期:2014-05-17 浏览次数:20879 次
string s = @");}"" name=""atc_title"" value=""Re:三角裤"" tabindex=""1"" title=""请输入标题"" />"; string r = Regex.Match(s, @"(?is)name=""atc_title"" value=""Re:(.+?)"" tabindex=""1""").Groups[1].Value; Response.Write(r);
------解决方案--------------------
string str = @");}"" name=""atc_title"" value=""Re:三角裤"" tabindex=""1"" title=""请输入标题"" />";
Response.Write(Regex.Match(s, @"(?is)name=""atc_title"" value=""Re:(.+?)""[^>]*/>").Groups[1].Value);
三角裤