ereg_replace("> <[^<]*</a>", "", $string);
or
ereg_replace("&.*\n", "", $string) if the unwanted bits end in new-lines
??
"Richard van Leeuwen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want to delete some lines
>
> original:
>
> <a href="http://www.example.com/1.html" >ABCD</a>
> > <a href="www.example.com/title.html#1234">Football</a>
> <a href="http://www.example.com/2.html" >BCDE</a>
> > <a href="www.example.com/title.html#2345">Tennis</a>
> <a href="http://www.example.com/3.html" >CDEF</a>
> > <a href="www.example.com/title.html#1234">Football</a>
> <a href="http://www.example.com/4.html" >DEFG</a>
> > <a href="www.example.com/title.html#3456">Basketball</a>
> <a href="http://www.example.com/5.html" >EFGH</a>
> > <a href="www.example.com/title.html#2345">Tennis</a>
> <a href="http://www.example.com/6.html" >FGHI</a>
>
> after:
>
> <a href="http://www.example.com/1.html" >ABCD</a>
> <a href="http://www.example.com/2.html" >BCDE</a>
> <a href="http://www.example.com/3.html" >CDEF</a>
> <a href="http://www.example.com/4.html" >DEFG</a>
> <a href="http://www.example.com/5.html" >EFGH</a>
> <a href="http://www.example.com/6.html" >FGHI</a>
>
> I tryed eregi replace with (.*)
> but that does not seem to work
>
> Thanks if you can help me
>
> Richard van Leeuwen
>
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]