From: Simon Harrison Date: 2011-01-14T04:07:20+09:00 Subject: Retrieving and copying element from array If I have an array like this: ["category: cat1", "item1, item2, item3", "category: cat2", "item1", "category: cat3", "item1, item2, item3, item4",] How can I have a new array like this: [["cat1", "item1", "item2", item3"], ["cat2", "item1"], ["cat3", "item1", "item2", "item3", "item4"] ] Thanks for the help. -- Posted via http://www.ruby-forum.com/.