I simply want to extract a certain image from a block of html text that may contain 5 different images–in the image I want, the url always starts with “http://yourhosthere.images…..,” where the other images don’t have that same beginning url structure. I just cannot figure out how to just grab that one image and ignore all the others.
Share
A sample of the HTML would help, but you can use
preg_matchlike this:tested: http://www.ideone.com/XbFcS