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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
.*?$(?<!\.aspx)
Description
Matches a string to ensure that it does not end with .aspx; sure, you'd probably use string handling to do something this simple but, in the real world you'd whack a regex which validates a valid url to the front of this. The pattern was created by Wayne King; you can read about it here: http://scottwater.com/blog/posts/10204.aspx
Matches
http://weblogs.asp.net/DNeimke/blah.gif
Non-Matches
http://weblogs.asp.net/DNeimke/Default.aspx
Author Rating: Not yet rated. Darren Neimke
Source Wayne King
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

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