Feature. By placing a "dash" next to the bracket, there is no confusion that
the dash is being used to specify a range.

Kirk

> -----Original Message-----
> From: Andrew Perevodchik [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] minus in [] groups in ereg
> 
> 
> Is this a bug or feature? The only way to include
> a minus characher in [] groups in regex is to put
> \- right gefore ]
> 
> [[A-Za-z0-9\_\-\=\%\.]] won't work with "-" as it is supposed to
> [[A-Za-z0-9\_\=\%\.\-]] is ok
> 
> Uh?

-- 
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