in reply to Re: Regex: negative look ahead
in thread Regex: negative look ahead

Note that

if ( ! ( $string =~ /pattern/ ) ) {

can be written

if ( $string !~ /pattern/ ) {

I hope this is of interest.

Cheers,

JohnGG