111,130
社区成员
发帖
与我相关
我的任务
分享
string xmlstr = "";
string patternstr = "<R [^>]*>";
MatchCollection mc = Regex.Matches(xmlstr, patternstr);
for (int i = 0; i < mc.Count; i++)
{
string thisrow = mc[i].Value;
xmlstr = xmlstr.Replace(thisrow, "{$thisrowstr}");
thisrow.Replace(" name=\"", "ID=\"");
xmlstr = xmlstr.Replace("{$thisrowstr}", thisrow);
}