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. -- CC -- 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]