using preg_match

From: Date: Wed, 16 May 2007 12:12:31 +0000
Subject: using preg_match
Groups: php.general 
Request: Send a blank email to php-general+get-255012@lists.php.net to get a copy of this message
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'? Thanks, Ed

« previous php.general (#255012) next »