From: Payton Swick Date: 2005-12-22T05:08:34+09:00 Subject: move to front of array Hi, I have an array of Strings, and I'd like to find one of the items by Regexp, then move that item to the front of the array, eg: array = %w(a B c d Cool e f G) array.unshift(array.slice!(array.index(array.find { |i| i =~ /cool/i }))) if array.find { |i| i =~ /cool/i } Better/cleaner/shorter ways to do it? -Payton