Re: removing backslashes using regular expressions
| From: | Wico de Leeuw | Date: | Tue, 08 May 2001 09:45:56 +0000 |
| Subject: | Re: removing backslashes using regular expressions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51877@lists.php.net to get a copy of this message | ||
At 11:27 8-5-2001 +0200, Trond Straume wrote:
Hi! I'm having problems using preg_replace to search and remove backslash character. print preg_replace("/\\/","","testing \\ testing");try print preg_replace('"\"',"","testing \\ testing"); double-quote single-quote back-slash single-qoute double-qoute, Greetz, Wico
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net