What is the OR operator in emacs regexps?

后端 未结 2 694
遥遥无期
遥遥无期 2021-02-15 07:59

The manual says to use \'\\|\', as in a\\|b matches a or b. But when I use it with regexp builder or align-regexp e.g. with, \"True\\|False\", it doesn\'t recognize \"True\" or

2条回答
  •  礼貌的吻别
    2021-02-15 08:26

    For further details, see the discussion of '\' and strings in the elisp manual section 34.3.1.1 "Special Characters in Regular Expressions"

    M-: (info "(elisp) Regexp Special") RET

提交回复
热议问题