Image Link Regular Expression

Category: URI

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)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.