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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Validate extension of files such as asp,aspx,xls,doc Extensions etc
Expression
([a-zA-Z1-9]*)\.(((a|A)(s|S)(p|P)(x|X))|((h|H)(T|t)(m|M)(l|L))|((h|H)(t|T)(M|m))|((a|A)(s|S)(p|P))|((t|T)(x|X)(T|x))|((m|M)(S|s)(P|p)(x|X))|((g|G)(i|I)(F|f))|((d|D)(o|O)(c|C)))
Description
Validate Filename,PageName,ImageName etc such as filename.doc filename.xls pagename.aspx pagename.asp pagename.htm pagename.html Extensions etc ...
Matches
filename.doc,pagename.aspx etc
Non-Matches
page.jpg
Author Rating: Not yet rated. Pranav
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Useful REGEX
Name: Gopal
Date: 2/18/2009 10:20:52 AM
Comment:
Useful REGEX


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