Image Link Regular Expression

Category: URI | Views Total: 1 view

A regular expression that matches all valid image links.

Feel free to modify the regex below to add new image extensions.

/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif|jfif))$/i

Video Link Example:

  • http://example.com/1.jpg
  • https://example.com/1.gif
  • https://example.com/1.webp

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Leave a Reply