write a MatchEvaluator, seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemtextregularexpressionsmatchevaluatorclasstopic.aspsomething like
public string ReplaceCC(Match m)
{
return aaa(m.Groups[1].Value);
}string t = Regex.Replace(content,@"\u([a-z,0-9,A-Z]{4})",new MatchEvaluator(this.ReplaceCC), RegexOptions.IgnoreCase);
public string ReplaceCC(Match m)
{
return aaa(m.Groups[1].Value);
}string t = Regex.Replace(content,@"\u([a-z,0-9,A-Z]{4})",new MatchEvaluator(this.ReplaceCC), RegexOptions.IgnoreCase);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货