Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [klauslovgreen] Highlight search terms: Edit Log

Here is the list of edits for this post
Re: [klauslovgreen] Highlight search terms
Whoops, I meant to add case sensitivity but forgot. Change the "sg" to "sig"

Regarding multiple words, try:

Code:
sub {
my @query = split /\s+/, $IN->param('query');
my $desc = $_[0]->{Description};
for (@query) {
$desc =~ s|(\Q$_\E)|<b>$1</b>|sig;
}
return $desc;
}

Last edited by:

Paul: Mar 7, 2003, 8:07 AM

Edit Log: