[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp-quote missing escapes in grouping constructs - Bug?
From: |
tomas |
Subject: |
Re: regexp-quote missing escapes in grouping constructs - Bug? |
Date: |
Sat, 14 Jun 2008 06:16:53 +0200 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Jun 13, 2008 at 01:36:07PM -0400, MON KEY wrote:
> Y. but why are the "?" a"[" and "+" getting escaped regardless of the
> presence of a preceding \ whereas the alternative "|" inside the
> grouping construct isn't?
Ah -- maybe somewhat unexpectedly to you (e.g. in Perl it is), the "|"
isn't special in Emacs. You have to spell "\|" to say "alternative".
HTH
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIU0Y1Bcgs9XrR2kYRAjc/AJwPIAhKhoMdc5iDeFo6U3dNMAYn6wCeJZH9
FcFJY6lNWbQODDxxBlDm2Qw=
=O1bw
-----END PGP SIGNATURE-----