在记事本++
问题描述:
使用正则表达式查找和重排命令我试图找到这样的事情在记事本++
MakeVariable(magnet, "1", "Enable magnet")
与
CVariable magnet("magnet", "1", "Enable magnet")
这里取而代之的是什么,我试图
Find What: MakeVariable(([^ ]+),
Replace with: CVariable \1 ("\1 ",
难道不该'MakeVariable \(([^] +),'?你也试试'\ g时,'(''中的代替'\ 1'。 – Xufox
其实替代模式也应该逃脱,因为NPP在括号具有特殊含义的情况下使用Boost风格的条件替换模式。 –