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
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
>
ΝΙΚΟΣ ΓΑΤΣΗΣ 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("^$", "", $string)
Since it looks like you're changing all of the links, how about a simple
str_replace() replacing '
--
---J
Hi again!
...and then ÍÉÊÏÓ ÃÁÔÓÇÓ said...
%
% Thank you for reply, but the is not the only tag in my string.
You're quite welcome, and now we definitely know that ^ and $ are not
what you need.
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) [
Thank you for reply, but the is not the only tag in my string.
...
% ereg_replace("^$", "", $string)
%
% I echo the result but nothing changing.
% What Im doing wrong?
Is your string really the only thing on a line, or could it be anywhere
in the input? The ^ (beginning) and $ (ending) anch
Hi!
...and then ÍÉÊÏÓ ÃÁÔÓÇÓ said...
%
...
% ereg_replace("^$", "", $string)
%
% I echo the result but nothing changing.
% What Im doing wrong?
Is your string really the only thing on a line, or could it be anywhere
in the input? The ^ (beginning) and $ (ending) anchors are probably
messing
From: "Dillon, John" <[EMAIL PROTECTED]>
> strip_tags() is used to remove HTML tags, eg for showing text on the
browser
> and then sending it by plain text email or storing in the db. As a matter
> of interest, how is this done using ereg_replace. I thought this would
work
> ^<.*>$, that is bein