GNU bug report logs - #11663
Incorrect regexp match with explicitly numbered blocks

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Sat, 9 Jun 2012 23:28:01 UTC

Severity: normal

Done: Andreas Schwab <schwab <at> linux-m68k.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vitalie Spinu <spinuvit <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Incorrect regexp match with explicitly numbered blocks 
Date: Sat, 09 Jun 2012 23:26:28 +0200
Hi, 

Assume this buffer's text. M-x regexp-builder and try this regexp
"\\(?:^Hi\\)" which works correctly. Modify to "\\(?2:^Hi\\)" and you
will see that ^ is taken literally and does not match bol anymore.

I've tried this in emacs 23 and on GNU Emacs 24.1.50.1
(i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2012-06-08 on lakoocha,
modified by Debian.

Vitalie.





This bug report was last modified 12 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.