If you want "no match", use it:
if ( $test_string !~ /$regex/) {
unless ( $test_string =~ /$regex/) {
In reply to Re: regular expressions with !
by explorer
in thread regular expressions with !
by egunnar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |