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を一致させるにはどうすればよいですか?classdef
class
def
バックスラッシュを 1 つ使用する必要があります (かっこなしで使用するか、かっこもエスケープする必要があります)。
def\|class