From: Dan Diebolt Date: 2005-12-22T05:52:28+09:00 Subject: Re: move to front of array --0-302192896-1135198321=:86581 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Try this: array1 = %w(a B c d Cool e f G) array1.partition {|i| i =~ /cool/i} array2=array1.partition {|i| i =~ /cool/i} array2.flatten #or array2.flatten! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-302192896-1135198321=:86581--