Re: [PHP] php regexp question

2003-03-25 Thread Marek Kilimajer
Just an idea: In $string replace any occurence of รง to c, search for offsets of francoise, and then add bold tags at the offsets (and end tags at offsets +strlen('francoise')) in the original string. cpaul wrote: hi i've made a small php site that is searching against french documents stored i

[PHP] php regexp question

2003-03-25 Thread cpaul
hi i've made a small php site that is searching against french documents stored in a mysql database. when it comes to rendering search results, the client has asked if the words that were searched for can be highlighted. "no problem!" i thought. just do a regexp replace and wrap a tag ar