Gossamer Forum
Quote Reply
if Image statment
Hi
I am using a global to distriguish any image URL so it will be flaged as such..

sub {
my $url = shift;
my $flag = 0;
if (index($url, '.jpg') > -1 or index($url, '.gif') > -1) {
$flag++;
}
return { img_flag => $flag };
}

The problem is if the URL is www.gifopt.com or www.jpgmax.org
it is still flagging it.. Crazy

Is there a way to limit the global to the URL end only? so it will only flag URLs ENDING with .jpg or .gif?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Subject Author Views Date
Thread if Image statment katabd 2452 Apr 19, 2004, 6:32 PM
Thread Re: [katabd] if Image statment
Andy 2386 Apr 20, 2004, 12:40 AM
Thread Re: [Andy] if Image statment
katabd 2374 Apr 20, 2004, 8:11 AM
Thread Re: [katabd] if Image statment
Andy 2375 Apr 20, 2004, 8:13 AM
Thread Re: [Andy] if Image statment
katabd 2377 Apr 20, 2004, 8:48 AM
Thread Re: [katabd] if Image statment
Andy 2374 Apr 20, 2004, 8:52 AM
Post Re: [Andy] if Image statment
katabd 2361 Apr 20, 2004, 9:15 AM