Hi, On Mar 11, 1:16 am, nore...@gunnar.cc (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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/