Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想大致了解一下我的 Python 程序,所以我跑了:
M-x occur
对于我提供的正则表达式
(def)|(class)
未能匹配任何东西。
我也看过这篇文章,并尝试过
(def)\\|(class)
但这也不匹配任何东西......
我如何M-x occur匹配class或def?
class
def
您必须使用单个反斜杠(不带括号,或者您也应该转义括号):
def\|class