用了一下 color-rg-search-input-in-current-file 命令,搜索 (str1.*str2)|(str2.*str1) 就可以了,不用反斜杠转义。因为翻译成命令行的时候会自动转义
color-rg-search-input-in-current-file
(str1.*str2)|(str2.*str1)