Re: [PHP] Help on pregreplace

2009-08-18 Thread Tom Worster
On 8/18/09 10:56 AM, "Merlin Morgenstern" wrote: > > > Ashley Sheridan wrote: >> On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: >>> Hi there, >>> >>> I am highlighting keywords with the help of pregreplace. This works >>> great with one limitation. If the word that has to be repl

Re: [PHP] Help on pregreplace

2009-08-18 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a

Re: [PHP] Help on pregreplace

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: > Hi there, > > I am highlighting keywords with the help of pregreplace. This works > great with one limitation. If the word that has to be replaced contains > a slash, preg throws an error. So far I could not find a fix. Can > someon