why didn't reject work? >> array = ['234234','04593','4098234','0','0','0'] => ["234234", "04593", "4098234", "0", "0", "0"] >> array.reject {|e| e == '0' } => ["234234", "04593", "4098234"] (sorry if this posts twice) On Aug 3, 4:42 pm, Jon Hawkins <globyy3... / hotmail.com> wrote: > if i have an array full of numbers such as > ['234234','04593','4098234','0','0','0'] > > how do i remove the 0 elements without affecting the 0's in the 04593 > and the 4098234 numbers? > > my original thoughts were to use a array.reject approach but it didnt > quite work out :( > > Thanks > > -Jon > -- > Posted viahttp://www.ruby-forum.com/.