in reply to RE: Search Term Highlighting
in thread Search Term Highlighting
The secret, as my fellow monks have pointed out, is using parenthesis to collect the match on the left hand side of the substitution and the special variable $1 to insert that match on the right hand side. Read more about it in perlre.
(Yes, code needs explanation of the mechanics, sometimes.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Search Term Highlighting
by librarygeek (Novice) on Jun 15, 2000 at 02:27 UTC |