in reply to Re^2: regular expressions
in thread regular expressions

If you are looking for particular filenames, I would expand the regular expression. I'd specify the file extension as much as possible, including the literal full stop that separates the name and extension. The /i flag is sometimes a good idea since some things like to make everything upper case.

/^a.*\.(jpg|gif)$/i
--
brian d foy <bdfoy@cpan.org>