From: "Wayne E. Seguin" Date: 2007-10-12T22:11:59+09:00 Subject: Re: How to delete specific characters from a string? ------=_Part_11757_16485439.1192194716426 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/12/07, James Edward Gray II wrote: > > You can fix the ordering issue above by changing the line: > > indices.each do |index| > > to: > > indices.sort { b <=> a }.each do |index| > > Fixing for range usage is more complicated though. > > James Edward Gray II > Very nice. ------=_Part_11757_16485439.1192194716426--