On Mon, Apr 23, 2012 at 3:39 AM, Ilya Shlyakhter <ilya_shl(a)alum.mit.edu> wrote:
The following expression:
(progn (posix-string-match "i\\|ii" "ii")(match-data))
returns (0 1). Should it return (0 2) instead?
Yes, it should. A partial workaround is to write regexps so that
alternatives that give longer matches come first: (progn
(posix-string-match "ii\\|i" "ii")(match-data)) does return (0 2).
Icky and unreliable, I know, but I don't know how to fix this bug
offhand (I guess in general it means "find all matches" so will be
very inefficient, but that's as much as I can say now). So it will
take a while.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta