Re: preg_replace - understanding
| From: | Micah Montoya | Date: | Wed, 09 Jul 2003 00:22:00 +0000 |
| Subject: | Re: preg_replace - understanding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154456@lists.php.net to get a copy of this message | ||
Never mind. Its working.
thanks
----- Original Message -----
From: "Jennifer Goodie" <goodie@apollointeractive.com>
To: "Micah Montoy" <montmica@isu.edu>; <php-general@lists.php.net>
Sent: Tuesday, July 08, 2003 5:43 PM
Subject: RE: [PHP] preg_replace - understanding
> > $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
> "\\\\"
>
>
>