in reply to Re^2: RegEx Help
in thread RegEx Help
I didn't see the extension. Welldone, smart note...
But, although you are pointing in the right way, in this particular case could be a false problem...
Remember, this is what we are really feeding to the script.
@Files =( "filename=merilyn14.jpg.jpeg", "filename=003_Merilyn23.jpg.jpeg", "filename=890FoxyM.jpg.jpeg", "filename=006.jpg.jpeg" );
At least in some operative systems "filename=merilyn14.jpg.JPEG" will never be evaluated or modified by the regexp, because is not in the foreach loop, so be aware of this point. We can safely avoid /i here if we are in Linux, cause its our duty to check before what we put in @Files, and even if it was one or several JPG we should change only the regexp for those matches. There is not point into having a regexp searching something that we know will never match.
|
|---|