my $re = qr/(?!\A.*38[0-9]{8}[A-Z]{3}.*\z)/; if ($reference =~ m/$re/) { # 38nnnnnnnnXXX pattern was not found $reference = ""; }
--
[ e d @ h a l l e y . c c ]
In reply to Re: Regex 'If Not Match'
by halley
in thread Regex 'If Not Match'
by PugSA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |