Hello,
I need to remove some parts of search phrase entered by user. In the concrete I need to remove the "www." and ".com" from "www.somedomain.com" because for "www.somedomain.com" there are no results but for "somedomain" there are! I tried to put this near the beginning of search.cgi:
foreach $term (@search_terms) {
$term =~ s/www//;
$term =~ s/com//;
}
But it did nothing. The search phrase stayed unmodified.
I also tried to search through this forum, but found nothing.
Does anybody knows how to solve it?
Zdenek
Prospector's free stuff - http://www.prospector.cz/
I need to remove some parts of search phrase entered by user. In the concrete I need to remove the "www." and ".com" from "www.somedomain.com" because for "www.somedomain.com" there are no results but for "somedomain" there are! I tried to put this near the beginning of search.cgi:
foreach $term (@search_terms) {
$term =~ s/www//;
$term =~ s/com//;
}
But it did nothing. The search phrase stayed unmodified.
I also tried to search through this forum, but found nothing.
Does anybody knows how to solve it?
Zdenek
Prospector's free stuff - http://www.prospector.cz/