Simon Harrison wrote in post #990675:
> Can anyone help with this? I thought grep would find any element that
> matches in an array. It seems not...
>

You are trying to use grep() to match strings, yet your test array does 
not contain strings--it contains sub-arrays.   So first you have to grab 
the sub-arrays, and then you can apply grep to the sub-arrays because 
they contain strings.

-- 
Posted via http://www.ruby-forum.com/.