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

前端 未结 1 1798
灰色年华
灰色年华 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)
提交回复
热议问题