Re: [PHP] Re: Help with preg_replace

2007-11-08 Thread Robin Vickery
On 08/11/2007, Jochem Maas <[EMAIL PROTECTED]> wrote: > Al wrote: > > Delimiters needed. Can use about anything not already in your pattern. > > "/" is very commonly used; but I like "#" or "%" generally; but, you > > can't use "%" because your pattern has it. > > > > $html = preg_replace("#%ResI

Re: [PHP] Re: Help with preg_replace

2007-11-07 Thread Jochem Maas
Al wrote: > Delimiters needed. Can use about anything not already in your pattern. > "/" is very commonly used; but I like "#" or "%" generally; but, you > can't use "%" because your pattern has it. > > $html = preg_replace("#%ResID#",$bookid,$html); wont a str_replace() do just fine in this ca

[PHP] Re: Help with preg_replace

2007-11-07 Thread Al
Delimiters needed. Can use about anything not already in your pattern. "/" is very commonly used; but I like "#" or "%" generally; but, you can't use "%" because your pattern has it. $html = preg_replace("#%ResID#",$bookid,$html); Richard Luckhurst wrote: Hi I am in the process of portin

[PHP] Re: Help with preg_replace() , PLEASE

2003-03-13 Thread fLIPIS
Got the solution (i wonder why i always get into the list, post the question and end up with the answer 15 minutes later. I'm obviously too nervous and rush for help :-) ) The correct code is the following: And that's all, folks!!! EOT; $text = preg_replace("/(.*)(<\?.*?\?>)(.*)/imse","'\\1'.h