Re: Help with preg_replace

From: Date: Mon, 19 Jan 2004 17:42:31 +0000
Subject: Re: Help with preg_replace
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-175050@lists.php.net to get a copy of this message
John Clegg wrote:
Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John
Maybe addslashes(), but I don't know if that will escape all the characters you need. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#175050) next »