我试过使用
/string1\|string2
没用。
尝试过
/字符串1|字符串2
没用。
有什么帮助吗?
最佳答案
您必须将“交替”放在\(...\) 的“分组”中。这应该有效:
/\(string1\|string2\)
关于solaris - 如何在 Solaris 上的 vi 编辑器中搜索多个字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41007769/