From: "Adam H." Date: 2011-01-14T05:09:37+09:00 Subject: Re: Retrieving and copying element from array arr.grep(/category:.*/).map{|a| [arr.at(arr.index(a) +1)]} will work as long as there is only 1 element after the 'category' -- Posted via http://www.ruby-forum.com/.