Re: eregi
| From: | CC Zona | Date: | Tue, 02 Oct 2001 14:51:46 +0000 |
| Subject: | Re: eregi | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69577@lists.php.net to get a copy of this message | ||
In article <B7DE995A.1676B%php-l@bakednotfried.com>,
php-l@bakednotfried.com (Mike Cullerton) wrote:
> eregi("^[a-z0-9_\-]+$",$string)
>
> notice that i had to escape the dash with a backslash
Are you sure? 'Cuz AFAIK, escaping shouldn't be necessary on a hyphen
which is the last char (or, IIRC, the first) of a character class.
--
CC