I'm new to Regular Expressions and things like that. I have only few knowledge and I think my current problem is about them.
I have a webpage, that contains text. I want to get links from the webpage that are only in SPAN
s that have class="img"
.
I go through those steps.
- grab all the
SPAN
s tagged with the "img" class (this is the hard step that I'm looking for) - move those
SPAN
s to a new variable - Parse the variable to get an array with the links (Each
SPAN
has only 1 link, so this will be easy)
I'm using PHP, but any other language doesn't matter, I'm looking how to deal with the first step. Any one have a suggestion? Thanks :D