Path: 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 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.