![在 MS Word 中查找与正则表达式 '[^,] which' 匹配的内容](https://linux22.com/image/1351183/%E5%9C%A8%20MS%20Word%20%E4%B8%AD%E6%9F%A5%E6%89%BE%E4%B8%8E%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%20'%5B%5E%2C%5D%20which'%20%E5%8C%B9%E9%85%8D%E7%9A%84%E5%86%85%E5%AE%B9.png)
我希望查找子字符串的实例—以空格 ' 开头的[^,] which
单词,该单词的开头不是逗号。可以做到吗?which
[^,]
查询[,] which
工作正常,但否定破坏了正则表达式。MS Word 中是否有特殊语法,或者在“查找/替换”对话框中是否不可用?
当我尝试此查询时,我收到警告对话框,^ is not a valid special character for the Find What box or is not supported when the Use Wildcards check box is selected
答案1
使用[!,]
; 来自本文:
t[!am]ck 可查找“tock”和“tuck”,但不能查找“tack”或“tick”。