note 11683 added to ereg
| From: | jjuffermans at pagedev dot f2s dot com | Date: | Fri, 02 Mar 2001 09:59:24 +0000 |
| Subject: | note 11683 added to ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11769@lists.php.net to get a copy of this message | ||
Why does my regular expression match when I use [0-9]+ and not match when I use \d+ when \d should
mean exactly the same as [0-9] ???
Also: Why do I get a "Warning: REG_BADRPT" when I try to use [0-9]*? to do minimal
matching?
According to all the documentation I've found on PHP and regular expressions, is that it should
support \d type specifiers and *? quantyfiers.
http://www.php.net/manual/en/function.ereg.php