Re: [PHP] search result highlighting / regexp voodoo

2003-09-03 Thread Lee O'Mara
On Wed, 03 Sep 2003 00:29:45 -0400, John W. Holmes <[EMAIL PROTECTED]> wrote: This should produce what you want (or darn close): [snipped code example] Thank you John, I still don't understand regualar expression, but your suggestion provided enough insight that I am able to work out the rest o

Re: [PHP] search result highlighting / regexp voodoo

2003-09-02 Thread John W. Holmes
Lee O'Mara wrote: PROBLEM: I want to produce short "snippets" for search result pages. The search results are already partially processed (search terms get wrapped in [strong] tags), but I keep hitting dead-ends with this step. Now, I've tried a wide number of approaches, spent an embarasing am

[PHP] search result highlighting / regexp voodoo

2003-09-02 Thread Lee O'Mara
At the risk of this looking like a cheap tactic for getting someone else to do my work for me, I'll put the disclaimer at the top. Understand that what I'm looking for is new perspective on a problem that I've spent too much time dealing with. PROBLEM: I want to produce short "snippets" for sea