Re: RegEx question
| From: | Kevin Stone | Date: | Tue, 02 Jul 2002 20:54:38 +0000 |
| Subject: | Re: RegEx question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105032@lists.php.net to get a copy of this message | ||
Actually for a job like this look to substr() to extract the last three
chars as a string and compare them in an if() statment.
http://www.php.net/manual/en/function.substr.php
-Kevin
----- Original Message -----
From: "David Busby" <busby@pnts.com>
To: "php-general" <php-general@lists.php.net>
Sent: Tuesday, July 02, 2002 2:49 PM
Subject: [PHP] RegEx question
> List,
> How can I regex to compare the last three chars of a string to "php"?
>
> /B
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>