Re: Re: regex problem

From: Date: Fri, 15 Aug 2003 11:19:57 +0000
Subject: Re: Re: regex problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-159673@lists.php.net to get a copy of this message
Merlin wrote:
^\/test\/contact.html$
does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion?
Are you making this too hard? if($string = 'test/contact.html') { echo 'good'; } else { echo 'bad'; } ?? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

« previous php.general (#159673) next »