Article View: gnu.emacs.bug
Article #1862backtracking fails in regexp
From: enami tsugutomo
Date: Sat, 03 Feb 1990 02:18
Date: Sat, 03 Feb 1990 02:18
13 lines
802 bytes
802 bytes
Dear,
In GNU Emacs 18.55.0 of Mon Jan 29 1990 on chihaya (berkeley-unix)
My emacs says that the value of following expression is ("aaaa" . "a"),
but I think it should be ("aaa" . "a"), or an error.
(let ((str "aaaa"))
(string-match "\\(a\\|bc\\)+\\(a\\)" str)
(cons (substring str (match-beginning 1) (match-end 1))
(substring str (match-beginning 2) (match-end 2)) ))
enami.
Technical Details
Message-ID:
<9002030218.AA04981@chihaya.ptgd.sony.co.jp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ptgd.sony.co.jp!enamiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ptgd.sony.co.jp!enami From: enami@ptgd.sony.co.jp (enami tsugutomo) Newsgroups: gnu.emacs.bug Subject: backtracking fails in regexp Message-ID: <9002030218.AA04981@chihaya.ptgd.sony.co.jp> Date: 3 Feb 90 02:18:39 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 13