想实现类似这样子的功能
Regex.Replace(content,@ "(\[code\](.*?)\[\/code\]) ", getHtml($2));
getHtml()为真正返回要显示的HTML,
急,在线等
------解决方案--------------------------------------------------------
string s=Regex.Replace(content,@ "(\[code\](.*?)\[\/code\]) ", new MatchEvaluator(getHtml));
private string getHtml(Match m)
{
//你要处理的方案
}