From: Scott Lillibridge Date: 2008-12-18T13:43:17+09:00 Subject: Re: Array problem ------=_Part_21962_10671285.1229575868490 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline See Array#select irb(main):007:0> array.select{|x| x.match(/.*\.bmp/)} => ["moreCoco.bmp", "theFormat.bmp"] On Wed, Dec 17, 2008 at 9:22 PM, John Zoldiark wrote: > I have an array like this: > array = [ "manyThings.mp3", "myLike.gif", "moreCoco.bmp", > "theFormat.bmp"] > > and I want to make some comparison to eliminate all the words in the > array that are NOT of the bmp format. So at the end the array will look > like this: > > array = ["moreCoco.bmp", "theFormat.bmp"] > > is there a way to do this??? > > Many thanks for the help > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_21962_10671285.1229575868490--