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.

-- Matt
It's not what I know that counts.
It's what I can remember in time to use.