//替换首大写字母为小写
string xml = "<Rule><Name></Name></Rule>";
xml=Regex.Replace(xml,@"(?<=</?)[^>/]", delegate(Match match){
string m = match.Value.ToLower();
return m;
});
推荐正则在线测试网站:http://www.regexp.cn