日期:2014-05-20 浏览次数:20967 次
string subjectString = "<font style=\"filter: glow(color=#0000FF,strength=3);color:#FFFFFF;display:inline-block;\" > ";
string regex1 = "<.+=\"";
string regex2 = @"color:[^;]+";
string result1 = Regex.Match(subjectString, regex1).Value;
string result2 = Regex.Match(subjectString, regex2).Value;
string result = result1 + result2 + ";\" >";