Hi, On Mar 11, 1:16 am, [email protected] (Gunnar Hjalmarsson) wrote: > > I would do: > > if ( $a =~ /\.(?:html|jpg)$/i ) > > Please readhttp://perldoc.perl.org/perlretut.htmland other appropriate > docs.
Read the doc, but how to negate the "Non-capturing groupings" ?
use strict;
my $a = 'a.gif';
if ($a =~ /^(?:html|jpg)/gi) {
print 'not html or jpg';
}
Thanks,
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
