Re: Properly formatted ereg??

From: Date: Wed, 11 Apr 2001 04:22:59 +0000
Subject: Re: Properly formatted ereg??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48116@lists.php.net to get a copy of this message
strstr($PHP_SELF,"/coverage/") Absolutely no reason to use a regular expression when all you are doing is picking a simple string out of another. -Rasmus On Tue, 10 Apr 2001, Black S. wrote: > How would I write an ereg to use the value of $PHP_SELF and look for a > distinct folder? For instance. say I have: > > ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF > |||||||||||||||||||||||||| > ||||||||||||||||||||||||||||||||||||||| > > So basically it is looking for the "/coverage/" folder, anything can come > before it, and anything after it?? > > Thanks All!! > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#48116) next »