From: Robert Dober Date: 2008-12-06T21:37:37+09:00 Subject: Re: Proximity searches in Ruby On Sat, Dec 6, 2008 at 1:18 PM, Robert Klemme wrote: Hmm maybe you can scale this down File::read("test.data").scan %r{Hello.{0,10}World}im Should work fine for reasonable file sizes ( < Available Memory ) HTH Robert -- Il computer non è una macchina intelligente che aiuta le persone stupide, anzi, è una macchina stupida che funziona solo nelle mani delle persone intelligenti. Computers are not smart to help stupid people, rather they are stupid and will work only if taken care of by smart people. Umberto Eco