ah, i see.  no, i thought you were just parsing a filename.  i missed
the fact that you were searching a longer string for any instances of
gifs not named 'blank'.

i got nothing off the top of my head (my regex fu is weak), but i'll
play around.  i'm sure one of the ninjas will stop by soon tho with
the answer :)

On Dec 21, 2007 10:50 AM, Kris Jones <[EMAIL PROTECTED]> wrote:
> Well, the issue here is that the content will probably contain
> multiple gifs, and I want to know if any of them are not "blank.gif".
> Does that make sense? Or am I just not seeing the light here?
>
> Cheers,
> Kris
>
> On Dec 21, 2007 1:36 PM, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> > 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:295263
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to