Re: Help with preg_replace

From: Date: Mon, 19 Jan 2004 17:44:33 +0000
Subject: Re: Help with preg_replace
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-175051@lists.php.net to get a copy of this message
John Nichel wrote:
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.
Check that...addslashes() won't escape []. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#175051) next »