At 07:06 AM 12/6/2005, Richard Heyes wrote:
Georgi Ivanov wrote:
Hi,
I want to replace the content of html links : name="bla">REPLACETHIS.
$html=preg_replace("/()(.*)<\/a>/isU",$link,$html,1);
This generally works but removes , tags too.
How to make it work without removing anything else than (
Georgi Ivanov wrote:
Hi,
I want to replace the content of html links : name="bla">REPLACETHIS.
$html=preg_replace("/()(.*)<\/a>/isU",$link,$html,1);
This generally works but removes , tags too.
How to make it work without removing anything else than (.*) in the middle of
.*
$html = preg_repl
Replace the middle (.*) with ([^<]*). This tells the regex engine to
ignore new opening tags.
Cheers,
David
Georgi Ivanov wrote:
> Hi,
> I want to replace the content of html links : name="bla">REPLACETHIS.
>
> $html=preg_replace("/()(.*)<\/a>/isU",$link,$html,1);
> This generally works but r
3 matches
Mail list logo