... I thought I could of just done this ...return if ! ( /\.[jJ][pP][gG]$/ or /\.[jJ][pP][eE][gG]$/ );
... since the [eE] means find zero or more e's or E's right?return if ! ( /\.[jJ][pP][eE][gG]$/ );
In reply to help with []'s in regex please by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |