Re: - ereg_replace -SOLVED
| From: | CPT John W. Holmes | Date: | Fri, 14 Nov 2003 16:31:52 +0000 |
| Subject: | Re: - ereg_replace -SOLVED | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31580@lists.php.net to get a copy of this message | ||
From: "ΝΙΚΟΣ ΓΑΤΣΗΣ" <nikos@qbit.gr>
> eregi_replace("<a href=\"(.+)\">", "<a href=\"\\1\"
> target=\"_blank\"
> class=\"down_txt\">", $body);
How is that any different than just doing a str_replace() on "<a", though?
The str_replace() is going to be much faster than the eregi_replace()
function and "href" doesn't _have_ to be the first attribute in the anchor
tag...
Just trying to open your mind to other possibilities... :)
---John Holmes...