From: 7stud -- Date: 2009-04-28T22:20:47+09:00 Subject: Re: Is there anything like Array#Index that takes a block? arr = %w{apple banana blarg blueberry} pos = nil arr.each_with_index do |str, i| if str =~ /bl/ pos = i break end end puts pos --output:-- 2 -- Posted via http://www.ruby-forum.com/.