Article View: gnu.emacs.bug
Article #98568Pathological regexp search problem
From: macrakis
Date: Mon, 03 Jun 1991 16:55
Date: Mon, 03 Jun 1991 16:55
12 lines
1046 bytes
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!garbageShow 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