From: Jos Backus Date: 2001-11-09T13:57:05+09:00 Subject: [ruby-talk:24736] Negate grep pattern match? lizzy:/tmp# cat x a = %w{aap noot mies} p a.grep(/a/) lizzy:/tmp# ruby x ["aap"] Now how do I retrieve those array elements that do not match /a/? In Perl one can say @a = grep(!/a/, qw(aap noot mies)); does Ruby have a similar shortcut? Thanks, -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;