There's also this option:
a.any? { |val| /^coo/ =~ val }

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