From: Christophe Mckeon Date: 2008-12-18T13:49:58+09:00 Subject: Re: Array problem you might also want to anchor your regex (the $ at the end) so that it won't work on file names like 'foo.bmp.gz'. and be sure to escape your . in front of bmp with \. array.delete_if { |elem| elem !~ /\.bmp$/i } also note the regex not match operator !~ cheers, _c -- Posted via http://www.ruby-forum.com/.