From: Jens Wille Date: 2008-04-27T07:03:52+09:00 Subject: Re: Howto get array.agrep (NOT array.grep) 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! cheers jens