"0101,Field" "010203,MonthSum" "0101,Field" "01091,Field" 大虾如果拆分成这种呢
string[] result = Regex.Matches(a, @"(?<=PT<)[^<>]+(?=>)").OfType<Match>().Select(x => x.Value).ToArray();
string a = "PT<0101,Field>*PT<010203,MonthSum>+345*(PT<0101,Field>+PT<01091,Field>)"; string[] result = Regex.Matches(a, @"PT\<\d+\,\w+?\>").Cast<Match>().Select(x => x.Value).ToArray();
110,568
社区成员
642,567
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧