in reply to Re: regular expressions with !
in thread regular expressions with !

or

... if ($test_string !~ /$regex/) { ... } ...

Perl operators and their precedence