On Fri, Jan 13, 2012 at 05:26:59AM +0900, Matt Lawrence wrote: > On Fri, 13 Jan 2012, Robert Klemme wrote: > > >I'd use #select with inverted condition or #reject > > > >irb(main):005:0> a.select {|s| /0/ !~ s} > > That worked perfectly, thank you. A a sysadmin, I use "grep -v" > quite a bit and I was hoping that the grep method in Ruby had a > similar capability. Using select is a bit wordier and not quite as > apparent as to what is going on, but it works very well. Do you object to reject? -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]