Hello,
I was hoping someone could help me with this... I did search before asking and found part of my answer. 😃
What I am trying to do is use preg_match_all() to find and return the links inside an image tag.
What I got to do that is...
~<img src=\"([^\"]*)\"[^>]*>(.*)~
which would return something like...
http://somewebsite.com/images/somepic.gif
now what I would like to do is further expand that search and only pickup the links that have a certain string in them... for example.
http://somewebsite.com/images/somepicicon.gif
Say I wanted to find the links in image tags that contain the term icon in them.... how would I go about doing that?
Thanks for your time 🙂