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.
(my)XEmacs 21.4では、gdb-prompt-patternのdescribe-variableは次のようになります。
Value: "^>\\|^(.*gdb[+]?) *\\|^---Type <return> to.*--- *"
そこにある「[+]」とは何ですか?「+文字」という意味ですか?もしそうなら、なぜ「\ +」を使用しないのですか?
あなたのコンテキストで[+] は、 と同じです\+、それは文字に一致してい+ます。その正規表現の元の作成者は、読みやすさの理由から、またはおそらく [+]過去に次のような文字のセットがあったためにそうしたと思います [-+]
[+]
\+
+
[-+]
正規表現[+]では記号です+
の記号は、[]次を除く記号です。-
[]
-