i have html code i need to build regular expression to download jpg file: <div class="heightContainer" style="padding-bottom: 311.864406%" > <img src="https://s-media-cache-ak0.pinimg.com/236x/ae/9e/15/ae9e15d54884d6e1791971c45c24c2ce.jpg" class="pinImg fullBleed" style="" onload="P.lazy.onImageLoad(this)" alt="Cropped slit city style" > </div> HTML:
Try (https?:/)?(/?[\w_\-&%?./]*?)\.(jpg|png|gif) Code (markup): This should grab anything which begins with http and ends in .jpg/.png/.gif. For any other extensions, just modify the "(jpg|png|gif)" part.