Title |
Test
Find
Pattern Title
|
Expression |
(.*\.([wW][mM][aA])|([mM][pP][3])$) |
Description |
Matches a file name to be either a .wma or .mp3 file. This can be used to check file uploads to make sure they are of a certain type. Substitute letters where appropriate for specific file types. To include more simply add logical 'or' (|) operator and append. |
Matches |
|
Non-Matches |
whatever.exe | somethingelse.mpa | thisagain.wm3 |
Author |
Rating:
Not yet rated.
Pete Samwel
|
Source |
|
Your Rating |
|
Title: Updated
Name: Majed
Date: 5/28/2007 3:39:05 AM
Comment:
the pattern only accept first ext.
i updated to
".*\.([dD][oO][cC]|[pP][dD][fF])$"
it's work fine.
Title: bilbo
Name: brian
Date: 2/27/2005 11:39:16 AM
Comment:
when i tried this i needed parenthesis around the or argument
(.*\.(([wW][mM][aA])|([mM][pP][3]))$)