Re: [PHP-DB] - ereg_replace -SOLVED

2003-11-14 Thread CPT John W. Holmes
From: "ΝΙΚΟΣ ΓΑΤΣΗΣ" <[EMAIL PROTECTED]>

> eregi_replace("", " class=\"down_txt\">", $body);

How is that any different than just doing a str_replace() on "http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] - ereg_replace -SOLVED

2003-11-14 Thread ΝΙΚΟΣ ΓΑΤΣΗΣ
Thank you all for the replies.
I solve it with the following code:

eregi_replace("", "", $body);


- Original Message - 
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "ΝΙΚΟΣ ΓΑΤΣΗΣ" <[EMAIL PROTECTED]>
Cc: "PHP-mailist" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 3:25 PM
Subject: Re: [PHP-DB] - ereg_replace


> ΝΙΚΟΣ ΓΑΤΣΗΣ wrote:
>
> >  I'm trying to replace the string say http://www.mysite.gr";>
> >  with http://www.mysite.gr target="_blank"> with no luck
> >
> >  I use the code:
> >
> >  ereg_replace("^$", " > target=\"_blank\">", $string)
>
> Since it looks like you're changing all of the links, how about a simple
> str_replace() replacing '
> -- 
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals - www.phparch.com
>
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php