How can I extract the content from a list of unknown links? Supose I have this:
<div class="unknown_class">
<a title="The title x" href="link1.html">This is the content I need 1</a><br>
<a title="The title y" href="another-link.html">This is the content I need 2</a><br>
<a title="The title z" href="something-else.html">This is the content I need 3</a><br>
</div>
<a title="The title 0" href="something.html">I dont need this</a>
I think, here the regex could work, but I have no idea how to apply it. :(
This is the result I need:
Array(
'This is the content I need 1',
'This is the content I need 2',
'This is the content I need 3'
)
Any help is appreciated.
` tag. – Andrei Surdu Jun 29 '14 at 13:56