From: Phil Rhoades Date: 2008-04-27T07:48:42+09:00 Subject: Re: Howto get array.agrep (NOT array.grep) jens, On Sun, 2008-04-27 at 07:03 +0900, Jens Wille wrote: > Jens Wille [2008-04-26 22:45]: > > maybe i'll be able to come up with something that wraps flori's > > Amatch into (Enumerable|File)#agrep. > that was actually pretty easy and is definitely an improvement (see > ruby-nuggets v0.1.9), but it still won't give us support for regular > expression patterns :-( > > i also added IO::agrep, so you would now be able to do: > > %w[list1.txt list2.txt list3.txt].inject([]) { |matches, file| > matches + File.agrep(file, /Smith\|J.*12345/, 2) > } > > -- if only you had regular expressions at your disposal! Yes, that would be nice! . . I guess it will be there sometime. Thanks for looking at this! Regards, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Fax: +61:(0)2-8221-9599 E-mail: phil@pricom.com.au