note 10028 added to preg_quote

From: Date: Fri, 08 Dec 2000 02:51:42 +0000
Subject: note 10028 added to preg_quote
Groups: php.notes 
Request: Send a blank email to php-notes+get-8507@lists.php.net to get a copy of this message
Actually, preg_replace doesn't quite work as advertised. PHP 4.0.3pl1. The following program: $var = "http://www.test.com/"; echo preg_quote($var); yeilds: http:\://www\.test\.com/ Forward slashes are NOT escaped. http://www.php.net/manual/function.preg-quote.php

« previous php.notes (#8507) next »