Re: RegEx question

From: Date: Tue, 02 Jul 2002 23:50:23 +0000
Subject: Re: RegEx question
Groups: php.general 
Request: Send a blank email to php-general+get-105093@lists.php.net to get a copy of this message
> How can I regex to compare the last three chars of a string to "php"? if (substr($foo, -3) == 'php'){ } Oh, wait, you wanted to use RegEx. Sorry, can't help you there. :-) Don't use a cannon to swat a fly. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#105093) next »