替换大括号之间的数字

Rui*_*ins 0 regex xml notepad++

我正在尝试使用正则表达式在NotePad ++中进行替换,但无济于事.

我想改变

>{(number)}<
Run Code Online (Sandbox Code Playgroud)

><
Run Code Online (Sandbox Code Playgroud)

这是我正在使用的XML

<Financials>
   <IncomeStatement>
      <Revenue>{0}</Revenue>
      <OperatingIncome>{1}</OperatingIncome>
      <NetIncome>{2}</NetIncome>
      <BasicEPS>{3}</BasicEPS>
      <AvgSharesOutstand>{4}</AvgSharesOutstand>
   </IncomeStatement>
   <BalanceSheet>
      <CurrentAssets>{5}</CurrentAssets>
      <NonCurrentAssets>{6}</NonCurrentAssets>
      <TotalAssets>{7}</TotalAssets>
      <CurrentLiabilities>{8}</CurrentLiabilities>
      <TotalLiabilities>{9}</TotalLiabilities>
      <TotalEquity>{10}</TotalEquity>
   </BalanceSheet>
   <CashFlow>
      <OperatingCashFlow>{11}</OperatingCashFlow>
      <CapitalExpenditure>{12}</CapitalExpenditure>
      <FreeCashFlow>{13}</FreeCashFlow>
   </CashFlow>
</Financials>
Run Code Online (Sandbox Code Playgroud)

Kil*_*zur 5

在Notepad ++中,您需要转义大括号,因为它们被视为特殊字符.

搜索>\{\d+\}<,替换为><.