string str="aaaaaaaaa(bbbb)cccc"; var patern = "(?<=\\()[^\\)]+"; if (Regex.Matches(item.OuterHtml, patern).Count > 0) { foreach (var regex in Regex.Matches(item.OuterHtml, patern)) { str += regex; } } console.writerLine(str);
原文地址:https://www.cnblogs.com/mi21/p/10361886.html
时间: 2024-10-26 17:25:24