... since the [eE] means find zero or more e's or E's right?
No, it means one upper- or lower-case 'e'. Brackets mean a character class. You can make it accept zero with a question mark.
The simpler way to write that is with the /i modifier for a case-insensitive match: return if ! /\.jpe?g$/i; I've made the 'e' optional in the match.
After Compline,
Zaxo
In reply to Re: help with []'s in regex please
by Zaxo
in thread help with []'s in regex please
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |