RE: [PHP] preg_replace - understanding

2003-07-09 Thread Ford, Mike [LSS]
> -Original Message- > From: Jennifer Goodie [mailto:[EMAIL PROTECTED] > Sent: 09 July 2003 00:43 > > > $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

Re: [PHP] preg_replace - understanding

2003-07-08 Thread Micah Montoya
Never mind. Its working. thanks - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED]> To: "Micah Montoy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 5:43 PM Subject: RE: [PHP] preg_replace - unders

Re: [PHP] preg_replace - understanding

2003-07-08 Thread Micah Montoya
ROTECTED]> To: "Micah Montoy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 5:43 PM Subject: RE: [PHP] preg_replace - understanding > > $filevalue = str_replace("\\", "/", $filevalue); > > > > it is reversing

RE: [PHP] preg_replace - understanding

2003-07-08 Thread Jennifer Goodie
> $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 "" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] preg_replace - understanding

2003-07-08 Thread Micah Montoy
I took a look at the str_replace function and it will work but I am getting a weird thing happening now. When I do: $filevalue = str_replace("\\", "/", $filevalue); it is reversing the "\\" to "//" but not replacing them with just a single "/". What may be causing this? thanks "Kevin Stone"