in reply to Pulling all instances of a regex out
For something like this I would use XML::TreeBuilder. Use look_down to find the elements containing the stuff you want to pull out. For each element found itterate over the sub-elements to identify the image then pull out the image and the next sub-element which is the text.
|
|---|