Re: preg_replace - understanding

From: Date: Wed, 09 Jul 2003 00:21:26 +0000
Subject: Re: preg_replace - understanding
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154455@lists.php.net to get a copy of this message
You where right. That's what it was doing but now its not reversing the direction. It at least is a single "\". Have an idea for reversing it. I played with it a bit but still no go on this. 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 > "\\\\" > > >

« previous php.general (#154455) next »