From: Rimantas Liubertas Date: 2006-11-30T03:01:13+09:00 Subject: Re: Need a range, but not getting it. . . . > > > > Your problem was that, although gsub! (with the !) normally modifies the > > receiver, 'files' wasn't the receiver (to_s was), so you weren't actually > > changing 'files'. > > Not correct. Try it. >> files=["im123000-im123006"] => ["im123000-im123006"] >> files.to_s.gsub!(/-/,'..') => "im123000..im123006" >> files => ["im123000-im123006"] Regards, Rimantas -- http://rimantas.com/