January 28, 2021 JavaScript 0 Comment
This function will allow you to validate any image url that ends with either jpeg, jpg, gif or png.
function checkURL(url) { return(url.match(/\.(jpeg|jpg|gif|png)$/) != null); }
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.
Δ