minus in [] groups in ereg
| From: | Andrew Perevodchik | Date: | Thu, 13 Sep 2001 15:32:03 +0000 |
| Subject: | minus in [] groups in ereg | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67232@lists.php.net to get a copy of this message | ||
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?
--
Andrew Perevodchik
ok@naverex.kiev.ua