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>
知道用平衡组 但是奈何技术不够。求大佬帮忙