Re: [PHP] Re: highlighting multi term search results

2003-09-07 Thread Lee O';Mara
x27;,$src_terms[$i]); $result = preg_replace('/(<\/?b>)*('.$termWithOptionalBold.')(<\/?b>) */si', '\2', $result); $i++; } return $result; } ?> -- Lee O'Mara -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] search result highlighting / regexp voodoo

2003-09-03 Thread Lee O';Mara
ut the rest of what I want. Cheers, Lee O'Mara -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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