Created
September 13, 2012 12:35
-
-
Save hs0ucy/3714034 to your computer and use it in GitHub Desktop.
RegEx image type: Expression régulière qui cible les chaînes se terminant par .jpg, .png ou .gif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $that = $(this), //Object $imgLnk | |
imgURL = $that.attr("href"), //Récupérer l'URL de ce lien. | |
imgFormat = /\.(jpg|jpeg|png|gif)$/ig; | |
imgURL.match(imgFormat); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment