Note that
if ( ! ( $string =~ /pattern/ ) ) {
can be written
if ( $string !~ /pattern/ ) {
I hope this is of interest.
Cheers,
JohnGG
In reply to Re^2: Regex: negative look ahead
by johngg
in thread Regex: negative look ahead
by fcaw1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |