on 10/2/01 8:51 AM, CC Zona at [EMAIL PROTECTED] wrote:

> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (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.

cool. so, are you saying eregi("^[-a-z0-9_]+$",$string) should work?


 -- mike cullerton

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to