I am trying to parse out a multiline string using perl but I am getting only the number of matches. Here is the sample of what I am parsing:
<div id="content-ZAJ9E" class="content">
Wow, I love the new top bar, so much easier to navigate now :) Anywho, got a few other fixes I am working on as well. :) I hope you all like the new look.
</div>
I am trying to get the content to be stored in a string using this code:
@a = ($html =~ m/class="content">.*<\/div>/gs);
print "array A, size: ", @a+0, ", elements: ";
print join (" ", @a);
print "\n";
but it returns the whole thing not just the text in the div's. Can someone point me out the error in my regex?
Marisa