bug#81555: 30.2; The regular expression parser used by replace-regexp is not escaping certain characters

Arash Esbati <[email protected]> Thu, 06 Aug 2026 13:03:37 +0200
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
tags 81555 notabug
close 81555
thanks

Please always use the "Reply to all" function in your MUA and keep the
bug tracker in Cc, thanks.

gargoles <[email protected]> writes:

> Oh, all the regexp engines I dealt with in the past had conditioned me
> to escape the '(' character so I defaulted to it. I see it doesn't
> need to be.
> Apologies for the false positive.

Actually, the backslash makes ( and ) special, have a look at the manual
about backslash constructs[1]

> Thanks for the answer.

You're welcome.

> I'm not sure if I'm responsible for marking the bug as closed,

Anybody can close bug reports, I'm doing this now.

> I can't find any information on it, please do let me know if I am.

Have a look at the "Closing bug reports" section on this page[2].

Best, Arash

Footnotes:
[1]  https://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Backslash.html
[2]  https://debbugs.gnu.org/Developer.html