[英]Replace the wrapper (parent) string by regular expression and preserve the inner child content
我有多个格式过时的文件,我想用最新格式替换它们。 我的麻烦之一是查找所有包装字符串并全部替换,而我必须保留其内部内容。
例
我想将表达式ABC($IGNORE$)
为XBD([$IGNORE$])->T
这是需要更新其格式的字符串。
输入 :
... ABC( ......
..... (inner content should not be changed) .....
......) ....
输出 :
... XBD([ ......
..... (inner content should not be changed) .....
......])->T ....
我该如何实现?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.