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..
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
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..

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