Re: Re: regex problem

From: Date: Fri, 15 Aug 2003 12:48:22 +0000
Subject: Re: Re: regex problem
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-159679@lists.php.net to get a copy of this message
John W. Holmes wrote:
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')
That's if($string == 'test/contact.html') of course... :) ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

« previous php.general (#159679) next »