假如你有如下代码:
#include <iostream>
#include <algorithm>
。。。
你想让他们变成
#include "iostream"
#include "algorithm"
。。。
你可以在Find What框中输入:
^/#include /<{(.*)}/>$
Replace With框中输入:
#include "/1"
稍微解释一下:
^表示以此开头
$表示以此结尾
# < >字符要转义
{}与/1一一对应, 就是要替代的位置