RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
thisfile.mp3 | tH@tfile.wma
Non-Matches
whatever.exe | somethingelse.mpa | thisagain.wm3
Author Rating: Not yet rated. Pete Samwel
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials