removing backslashes using regular expressions

From: Date: Tue, 08 May 2001 09:27:31 +0000
Subject: removing backslashes using regular expressions
Groups: php.general 
Request: Send a blank email to php-general+get-51876@lists.php.net to get a copy of this message
Hi! I'm having problems using preg_replace to search and remove backslash character. print preg_replace("/\\/","","testing \\ testing"); This regexp produces this warning: No ending delimiter '/' found in c:\internweb\html\preg.php on line 27 It seems like I'm escaping the ending delimineter '/', but if i try to remove one'\' I'm still escaping. What do I have to do, to make this right? -- Regards Trond Straume

« previous php.general (#51876) next »