From: Joey Zhou Date: 2011-04-24T22:35:34+09:00 Subject: Re: Can I split the array from text? Here's a tricky one:) a = ["Member","Friends","Hello","Components","Family","Lastname"] b = a.partition {|elem| true unless elem=="Components"..false } p b #=> [["Member","Friends","Hello"], ["Components","Family", "Lastname"]] -- Posted via http://www.ruby-forum.com/.