//引用命名空间 using System.Text.RegularExpressions; string Pattern = @"(?<=<)[\s\S]*(?=>)"; Match m = Regex.Match("xx <aa <bbb> <bbb> aa> yy",Pattern); if(m.Success) { Console.Write(m.Value); }
110,566
社区成员
642,567
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧