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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Image URL
Expression
^(http\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?(?:[a-zA-Z0-9_])+\.(?:jpg|jpeg|gif|png))$
Description
A nice little regex to verify a URL pointing towards an image. Can be useful.
Matches
http://website.com/directory/image.gif
Non-Matches
www.website.com/image.php
Author Rating: Not yet rated. tedcambron
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: gfdg
Name: gfdg
Date: 3/31/2008 10:23:31 AM
Comment:
fdgf


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