From: Simon Harrison Date: 2011-04-05T04:06:26+09:00 Subject: Re: Using grep on subarrays - help! Thanks for all the tips. I think #select fits best: file_results = @films.select { |a, b| /#{@film}/i =~ a } Just one question. Obviously in the above, a and b refer to the first and second elements in each subarray. Let's say we have this array: => [["one", "two", "three"], ["one"], ["two", "three"], ["one", "three"]] What would be the best way to search for 'one' (or whatever) in this case? Cheers -- Posted via http://www.ruby-forum.com/.