why not just <cfif (listLast(filename, '.') is "gif") and
(listfirst(filename, '.') is not "blank")> ?
short-circuit evaluation would mean that if the file extension isn't
"gif", the other conditional never fires, so it should still be
relatively efficient.
On Dec 21, 2007 10:25 AM, Kris Jones <[EMAIL PROTECTED]> wrote:
> Not being a big regex wizard, I'm sure I'm missing something basic
> here. I'm trying to check some content for existence of gif images
> that are not named "blank.gif". My if statement looks like:
>
> <cfif refindnocase("[^(blank)].gif","#somestring#") gt 0>
>
> However, this is not accounting for any gif where the filename prior
> to the extension ends in b, l, a, n, or k, such that join.gif or
> nob.gif or kak.gif would be eliminated from the find return.
> I thought the parenthesis indicated literal string, so I'm a little
> lost. Can anyone explain? Please...
>
> Cheers,
> Kris
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295261
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4