From: Alex Gutteridge Date: 2011-02-07T23:28:55+09:00 Subject: Re: Find in Array On Mon, 7 Feb 2011 23:22:20 +0900, Benjamin S. wrote: > As I see it, with these methods i can only search for full strings. > My > problem is, that i get a string and my search parameter is only a > part > of this string (so find, include, find_index etc doesn't work...) irb(main):001:0> ["foo","bar","foobar"].find{|x| x.include?("ooba")} => "foobar" -- Alex Gutteridge