I've a list of images and some of these images are used on web. I need to get statistic about what images are used on website and on what pages etc.
How can I "match" my images. Rules are:
- I've only filename i.e. "mypic.png"
- Here is a regex I want to build
<img[anything]src=("or')[anything]mypic.png[anything]("or')[anything]>
here is a dumb of HTML I have
<figure class="gr_col gr_2of3">
<div class="mll mrm mbs md_pic_wrap1">
<a href="http://mydomain/nice-page" title="title test">
<img alt="alt text" class="mbm" src="http://mydomain/file-pic2/mypic.png" width="95" height="95">
</a>
</div>
</figure>
Thanks!