Re: using preg_match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ed Curtis wrote:
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!
Why didn't you just test it yourself? Most people (well, I hope) would try it out, find out it worked, and used it. Instead you asked it on a mailinglist, waited, and then got your answer. It took you longer to do this, it cost you more (because `time is money!`(TM)).... why....???

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux