🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98568

Pathological regexp search problem

#98568
From: macrakis
Date: Mon, 03 Jun 1991 16:55
12 lines
1046 bytes
GNU Emacs 18.55.121 on NeXT 2

(re-search-forward "\\(...\\)*") -- where ... matches a string of
length 0 -- goes into an infinite loop.  This is understandable...(!)
but unfortunate.  Examples are "\\(\\)*", "\\(a?b?c?\\)*" (even if it
matches a few times, it will eventually match the null string -- and
EOB if nowhere else), ....

It's probably not worth fixing.  I ran into the problem while playing
with some regexp-generating code of mine.

	-s
Technical Details
Message-ID: <9106031655.AA03418@.next1.osf.org.>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,99d6a4e688df1992,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-06-03 09:55:51 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: macrakis@osf.org
Newsgroups: gnu.emacs.bug
Subject: Pathological regexp search problem
Message-ID: <9106031655.AA03418@.next1.osf.org.>
Date: 3 Jun 91 16:55:51 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 12
Approved: bug-gnu-emacs@prep.ai.mit.edu