Re: using preg_match

From: Date: Wed, 16 May 2007 21:50:40 +0000
Subject: Re: using preg_match
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255036@lists.php.net to get a copy of this message
Ed Curtis wrote:
I'm trying to use preg_match to find a string in a system path. What I need to do is see if the string '/realtors' exists in a variable named '$path'. I know '/' is used as a container within the command itself. How do I escape it to find the string '/realtors'?
http://www.php.net/preg_quote -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#255036) next »