RE: [PHP] RegEx question
| From: | Henning Sittler | Date: | Tue, 02 Jul 2002 20:55:46 +0000 |
| Subject: | RE: [PHP] RegEx question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105033@lists.php.net to get a copy of this message | ||
$string = 'somethingphp';
$pat = 'php$';
$hasphp = ereg($pat, $string);
Henning Sittler
www.inscriber.com
-----Original Message-----
From: David Busby [mailto:busby@pnts.com]
Sent: Tuesday, July 02, 2002 4:49 PM
To: php-general
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