in reply to Search Term Highlighting
Which just combines two lines of your code. Note the escaped /s in the regular expression.$texttosearch =~ s/$searchstring/"<FONT COLOR='$color'><B>$searchstrin +g<\/B><\/FONT>/gi;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Search Term Highlighting
by librarygeek (Novice) on Jun 15, 2000 at 02:23 UTC |