R
R
ReeZo2014-02-09 14:25:18
Parsing
ReeZo, 2014-02-09 14:25:18

Image url parser

There is one site. There, every 7 hours, the picture on the sidebar changes. The code is like this

<a href="/template/images/cards/spells/large/fr/68-desespoir.png" class="zoombox">
            <img width="140" height="200" src="/template/images/cards/spells/large/fr/68-desespoir.png">
        </a>

Let both the link and the picture change dynamically. I need to load this image on my site, but I don't know how to write a regular expression for this code. In fact, the task is this: take this code, which changes dynamically
<img width="140" height="200" src="/template/images/cards/spells/large/fr/68-desespoir.png">

and display it on your website. Can someone help me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kompi, 2014-02-09
@ReeZo

All pictures: /<img.*src="(.*)".*>/Usi
Only pictures inside the "a" tag with the "zoombox" class:
/<a.*class="zoombox".*>.*<img.*src="(.*)".*>/Usi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question