Hi. Thanks for your report.
From: Vadim Gutnik <[EMAIL PROTECTED]>
Subject: Bug#350081: xemacs21: regexps with {} match incorrectly
Date: Thu, 26 Jan 2006 22:55:49 -0800
> I tried to figure out why a package I wanted to use wasn't working and I
> traced
> the problem to a regexp. Here's a simple example of the problem:
>
> (string-match "\\(-[a-z]+\\)\\{4\\}" "-ab-cd")
> 0
>
> (string-match "\\(-[a-z]+\\)\\{5\\}" "-ab-cd")
> nil
>
> I think both should fail.
>
> They should work with \\{2\\}, though, of course.
I can confirm this at both xemacs21 21.4.17-1(sarge) and
xemacs21 21.4.18-3(sid). But, this doesn't occur at emacs21.
I'll investigate this more.
---- xemacs21
(string-match "\\(-[a-z]+\\)\\{1\\}" "-ab-cd")
0
(string-match "\\(-[a-z]+\\)\\{2\\}" "-ab-cd")
0
(string-match "\\(-[a-z]+\\)\\{3\\}" "-ab-cd")
0
(string-match "\\(-[a-z]+\\)\\{4\\}" "-ab-cd")
0
(string-match "\\(-[a-z]+\\)\\{5\\}" "-ab-cd")
nil
----
---- emacs21
(string-match "\\(-[a-z]+\\)\\{1\\}" "-ab-cd")
0
(string-match "\\(-[a-z]+\\)\\{2\\}" "-ab-cd")
0
(string-match "\\(-[a-z]+\\)\\{3\\}" "-ab-cd")
nil
(string-match "\\(-[a-z]+\\)\\{4\\}" "-ab-cd")
nil
(string-match "\\(-[a-z]+\\)\\{5\\}" "-ab-cd")
nil
----
Thanks.
----
OHURA Makoto: [EMAIL PROTECTED](Debian Project)
[EMAIL PROTECTED](LILO/Netfort)
GnuPG public key: http://www.netfort.gr.jp/~ohura/gpg.asc.txt
1024D/77DCE083
fingerprint: 54F6 D1B1 2EE1 81CD 65E3 A1D3 EEA2 EFA2 77DC E083
http://www.netfort.gr.jp/~ohura/
pgp87bsuMwrnJ.pgp
Description: PGP signature

