Re: using preg_match

From: Date: Wed, 16 May 2007 12:49:21 +0000
Subject: Re: using preg_match
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-255015@lists.php.net to get a copy of this message
Christian Haensel wrote:
Hi Ed, did you try the backslash as escape character? <? $path = "testing/realtors/userdata/"; if(preg_match("/\/realtors/", $path)) { echo 'Success'; } ?>
That's what did it. I was thinking the \ was the escape for the command but wanted to make sure. Thanks!

« previous php.general (#255015) next »