From: botp Date: 2012-05-01T19:29:35+09:00 Subject: Re: delete character from array On Tue, May 1, 2012 at 5:02 PM, Bartosz DziewoƄski wrote: > Why the regex? > > s = "abcdefghijklmnopqrstuvwxyz" > s.split('').select.with_index{|l, i| i%3 != 0}.join('') > => "bcefhiklnoqrtuwxz" i dont see the first letter. maybe (i+1)%3 != 0... kind regards -botp