eregi("php$", $stringtobecompared);
See: http://www.php.net/manual/en/ref.regex.php
Gurhan
----- Original Message -----
From: "David Busby" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 4: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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php