in reply to Need a RegExp for Images
if ($filename =~ m/\.jpe?g$/i) { print ("yep, it is a jpg!\n"); } [download]