Replace text using regex in RAD Studio

前端 未结 1 527
谎友^
谎友^ 2021-01-18 12:10

I want to replace for example F(G(X,Y)); with H(X,Y); In RAD Studio IDE.

The regex I use is:

Find Expression: F\\(G\\

相关标签:
1条回答
  • 2021-01-18 12:36

    Use {} to group the expression rather than () and \1 in the replacement text:

    Find Expression: F\(G\({.+}\)\); Replace Expression: H(\0)

    0 讨论(0)
提交回复
热议问题