in reply to Need a regex..

You can do that with a negative look-ahead. See perlre for details.

But it's much easier to simply use a negated match,  if ($word !~ /Select/) { ... }

Update: fixed to actually use negated regex match. Thanks salva and anonmonk!

Replies are listed 'Best First'.
Re^2: Need a regex..
by salva (Canon) on May 22, 2012 at 09:50 UTC
    you mean !~, right?
Re^2: Need a regex..
by Anonymous Monk on May 22, 2012 at 09:51 UTC
    heh, ~= is not negated match :)