How to create a Regular Expression to Validate a HTTP Image URL
Updated July 15, 2010
Here's an example of a regular expression for validating an image url that ends with .gif, .jpg, .jpeg, .bmp or .png.
Here's the image url regex:
It will validate an image url such as:
Note: The regex example was tested using ASP.NET with C#.