更新时间:2022-11-14 18:28:08
如果我理解正确,你想要 %s/shop_\(.*\)/shop_\1 wp_\1/
If I understand correctly, you want %s/shop_\(.*\)/shop_\1 wp_\1/
转义捕获括号并使用 .*
匹配任意数量的任意字符.
Escape the capturing parenthesis and use .*
to match any number of any character.
(您的搜索正在搜索shop_",后跟任意数量的左括号,后跟右括号)
(Your search is searching for "shop_" followed by any number of opening parentheses followed by a closing parenthesis)