note 41693 added to function.eregi
| From: | kidproto at hotmail dot com | Date: | Tue, 20 Apr 2004 03:55:18 +0000 |
| Subject: | note 41693 added to function.eregi | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68354@lists.php.net to get a copy of this message | ||
"^[a-zA-Z0-9_\-]+(:?\.svg|\.wmf|\.zip|\.tar\.gz|\.tgz)$"
That is the proper file check for a well formatted beginning and ending filename for those select
files. The one in this list is incorrect for at least php 4.3.0 which is what I'm using.
The (:?) makes sure that the parentheses aren't used for storing the matched regex.
----
Manual Page -- http://www.php.net/manual/en/function.eregi.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41693
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41693&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41693&report=yes
Search -- http://master.php.net/manage/user-notes.php