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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
((ht|f)tp(s?))(:((\/\/)(?!\/)))(((w){3}\.)?)([a-zA-Z0-9\-_]+(\.(com|edu|gov|int|mil|net|org|biz|info|name|pro|museum|co\.uk)))(\/(?!\/))(([a-zA-Z0-9\-_\/]*)?)([a-zA-Z0-9])+\.((jpg|jpeg|gif|png)(?!(\w|\W)))
Description
This expression matches valid image URLs. The main use for this would be in UBBC tags. Written by RyanJ and Jick for FWD (http://flexwebdev.thenamesdan.com/)
Matches
http://www.location.com/images/image1.gif | http://www.location.com/images/mainImgs/image1.png
Non-Matches
/images/image1.jpeg | http://www.location.com/images/image1.swf | http://www.something.com/hello/..j
Author Rating: The rating for this expression. Ryan Jones
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: Awesome!
Name: Bob Schadwich
Date: 8/3/2004 3:42:08 PM
Comment:
This RegExp is awesome. It works perfectly for me. Good job.


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