Console.WriteLine(Regex.Replace("<abc>字符串</abc> 与<def>字符串</def>", @"(?<g><(?<k>abc|def)\b[^>]*>).*?</\k<k>>", m => { return string.Format("{0}0.0</{1}>", m.Groups["g"].Value, m.Groups["k"].Value); }));
17,741
社区成员
24,334
社区内容
加载中
试试用AI创作助手写篇文章吧