C# 正则平衡组

欧皇神降术 2020-08-15 04:07:40
先有文本
<uac:ForEach x:TypeArguments="x:Object" CurrentIndex="{x:Null}" DisplayName="遍历循环" sap2010:WorkflowViewState.IdRef="ForEach`1_4">
<uac:ForEach.Body>
<ActivityAction x:TypeArguments="x:Object" DisplayName="Action">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="item" />
</ActivityAction.Argument>
<uac:ForEach x:TypeArguments="x:Object" CurrentIndex="{x:Null}" DisplayName="遍历循环" sap2010:WorkflowViewState.IdRef="ForEach`1_3">
<uac:ForEach.Body>
<ActivityAction x:TypeArguments="x:Object" DisplayName="Action">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="item" />
</ActivityAction.Argument>
<uac:ForEach x:TypeArguments="x:Object" CurrentIndex="{x:Null}" DisplayName="遍历循环" sap2010:WorkflowViewState.IdRef="ForEach`1_2">
<uac:ForEach.Body>
<ActivityAction x:TypeArguments="x:Object" DisplayName="Action">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="item" />
</ActivityAction.Argument>
<uac:ForEach x:TypeArguments="x:Object" CurrentIndex="{x:Null}" DisplayName="遍历循环" sap2010:WorkflowViewState.IdRef="ForEach`1_1">
<uac:ForEach.Body>
<ActivityAction x:TypeArguments="x:Object" DisplayName="Action">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="item" />
</ActivityAction.Argument>
</ActivityAction>
</uac:ForEach.Body>
</uac:ForEach>
</ActivityAction>
</uac:ForEach.Body>
</uac:ForEach>
</ActivityAction>
</uac:ForEach.Body>
</uac:ForEach>
</ActivityAction>
</uac:ForEach.Body>
</uac:ForEach>
<uac:ForEach x:TypeArguments="x:Object" CurrentIndex="{x:Null}" DisplayName="遍历循环" sap2010:WorkflowViewState.IdRef="ForEach`1_5">
<uac:ForEach.Body>
<ActivityAction x:TypeArguments="x:Object" DisplayName="Action">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="x:Object" Name="item" />
</ActivityAction.Argument>
</ActivityAction>
</uac:ForEach.Body>
</uac:ForEach>


我需要获取同一级的
<uac:ForEach x:TypeArguments="x:Object" CurrentIndex="{x:Null}" DisplayName="遍历循环" sap2010:WorkflowViewState.IdRef="ForEach`1_4">****</uac:ForEach>
和 <uac:ForEach></uac:ForEach>
知道用平衡组 但是奈何技术不够。求大佬帮忙
...全文
8878 点赞 收藏 1
写回复
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
threenewbee 2020-08-17
这么复杂的东西,为什么不直接当作xml去解析
回复
相关推荐
发帖
.NET技术其他语言
创建于2007-09-28

1833

社区成员

.NET技术 其他语言讨论
申请成为版主
帖子事件
创建了帖子
2020-08-15 04:07
社区公告
暂无公告