$string = 'somethingphp';
$pat = 'php$';
$hasphp = ereg($pat, $string);


Henning Sittler
www.inscriber.com



-----Original Message-----
From: David Busby [mailto:[EMAIL PROTECTED]]
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

Reply via email to