From: Simon Strandgaard Date: 2006-12-27T22:26:15+09:00 Subject: Re: reg exp comparison hanging irb On 12/27/06, Bill Kelly wrote: > From: "Simon Strandgaard" > > > > the GNU regexp engine has a few oddities.. > > here is another example that triggers an endless loop. > > > > r='' > > r.scan /<(?:[^">]+|"[^"]*")+>/ > > To clarify, it's probably not an endless loop, just may or > may not finish in our lifetimes. :) Thanks for the clarification. I must have forgotten a lot about regexp too.. iirc stress can cause amnesia. -- Simon Strandgaard http://opcoders.com/