RE: [PHP] Not found regex
| From: | Wei, Alice J. | Date: | Mon, 04 Aug 2008 14:48:08 +0000 |
| Subject: | RE: [PHP] Not found regex | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277669@lists.php.net to get a copy of this message | ||
________________
From: Manoj Singh [manojsingh2121@gmail.com]
Sent: Monday, August 04, 2008 10:44 AM
To: php-general@lists.php.net
Subject: [PHP] Not found regex
Hello All,
I have to create the regular expression to allow all the file extensions
except the specified extension.
Suppose I want to allow extensions with php, so the regex is: ^.+\.php$
But here i need the regex which allows all the extensions except php.
Maybe you can do a if statement that says if it maches the regex you provided above, then print the
error? If else, do whatever it is supposed to do?
Hope this helps.
I will appreciate any help.
Best Regards,
Manoj Kumar Singh
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
ajwei@indiana.edu