From: Tim Greer Date: 2008-12-18T13:57:22+09:00 Subject: Re: Array problem Joshua Ball wrote: > > Actually,  the regex should have the end of string anchor: > array.delete_if { |elem| not elem =~ /.bmp$/i } > Also, remember that . is any character, whereas \. is just . for the sake of getting exactly what you want. !~ looks cleaner to me, but that's just personal preference in most cases. -- Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc. Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers and Custom Hosting. 24/7 support, 30 day guarantee, secure servers. Industry's most experienced staff! -- Web Hosting With Muscle!