Home All Groups Group Topic Archive Search About
Author
21 Dec 2006 1:50 PM
Bert
HI

I need to find words in a large string/textfile for certain words/patterns.
I need to hilight those word(s). How do I go about this?

thanks

B

Author
21 Dec 2006 2:24 PM
lord.zoltar
Bert wrote:
> HI
>
> I need to find words in a large string/textfile for certain words/patterns.
> I need to hilight those word(s). How do I go about this?
>
> thanks
>
> B

How are you displaying the text? It'snot too hard if you are displaying
in HTML. You search for the pattern, then replace it with the pattern,
surrounded by highlighting tags.
example:
find: /test/
replacewith: /<b>test<\/b>/