note 64297 added to function.ereg
| From: | cjbarroso at gmail dot com | Date: | Tue, 11 Apr 2006 21:23:33 +0000 |
| Subject: | note 64297 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107814@lists.php.net to get a copy of this message | ||
For the first note:
$pat = "^[a-zA-Z]{1}[[a-zA-Z0-9]";
you missed a * at the end!
this is a correct regex por arbitrary large strings:
$pat = "^[a-zA-Z]{1}[[a-zA-Z0-9]*";
----
Server IP: 201.216.232.3
Probable Submitter: 190.48.37.108
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ereg.php
Edit -- http://master.php.net/note/edit/64297
Del: integrated -- http://master.php.net/note/delete/64297/integrated
Del: useless -- http://master.php.net/note/delete/64297/useless
Del: bad code -- http://master.php.net/note/delete/64297/bad+code
Del: spam -- http://master.php.net/note/delete/64297/spam
Del: non-english -- http://master.php.net/note/delete/64297/non-english
Del: in docs -- http://master.php.net/note/delete/64297/in+docs
Del: other reasons-- http://master.php.net/note/delete/64297
Reject -- http://master.php.net/note/reject/64297
Search -- http://master.php.net/manage/user-notes.php