emacs regexp-builder doesn't work in replace-regexp

前端 未结 1 1799
灰色年华
灰色年华 2021-01-31 17:54

I have an emacs buffer containing the text

a1b2c3

using the regexp-builder, i create the regexp

\"b\\\\(2\\\\)\"
1条回答
  •  走了就别回头了
    2021-01-31 18:32

    regexp-builder can show the regexp in several syntaxes. By default, it uses the syntax that is appropriate to put in an Emacs Lisp source (read syntax), so the regexp is placed between double quotes and every backslash is doubled. For interactive use, select the string syntax with C-c C-i (reb-change-syntax).

    0 讨论(0)
提交回复
热议问题