RE: [PHP] preg_replace - understanding
| From: | Jennifer Goodie | Date: | Tue, 08 Jul 2003 23:43:19 +0000 |
| Subject: | RE: [PHP] preg_replace - understanding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154454@lists.php.net to get a copy of this message | ||
> $filevalue = str_replace("\\", "/", $filevalue);
>
> it is reversing the "\\" to "//" but not replacing them with just a single
> "/".
I think you need to escape your \ so each \ is \\ so your string should be
"\\\\"