From: Jacob Fugal Date: 2005-01-28T01:47:56+09:00 Subject: Re: regex questions On Thu, 27 Jan 2005 16:10:59 +0900, Andrew Johnson wrote: > A fairly standard way is to use negative look-ahead and inch > ahead one character at a time like: > > re = %r{a((?:(?!foo).)*?)b} Thank you, oh thank you! I don't know how many times I've been told that something like this was possible, but neither I nor the "guru" who told me could make it work. You have my eternal gratitude! Jacob Fugal