RE: [PHP] eregi_replace
| From: | Rodolfo Gonzalez | Date: | Thu, 04 Apr 2002 21:08:47 +0000 |
| Subject: | RE: [PHP] eregi_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91621@lists.php.net to get a copy of this message | ||
On Thu, 4 Apr 2002, Rick Emery wrote:
> it should print:
> V:\memo\F0001\abcdef.com
> \F0001\abcdef.com
Indeed, sorry for the lapsus. In fact, look at this:
in:
$qq = "V:\\memo\\F0001\\abcdef.com";
print "$qq<br>\n";
$qx = ereg_replace('V:\\','',$qq);
print $qx;
out:
Parse error: parse error in /home/rodolfo/public_html/test.php on line 5
in:
$qq = "V:\\memo\\F0001\\abcdef.com";
print "$qq<br>\n";
$qx = ereg_replace("V:\\",'',$qq);
print $qx;
out:
V:\memo\F0001\abcdef.com
Warning: Trailing backslash in /home/rodolfo/public_html/test.php on line
5
Regards,
Rodolfo.