in reply to HTML Parsing /Regex Qstn
State your problem in simple terms
From a HTML fragment, you want to extract the href of an anchor tag and use it as the key for a hash the value being an array of the body of the anchor tag, the date from the last line of the div and the text after the line break up to the /From $source - $date/
My advice
When attempting to parse HTML you should rely on an existing module rather than a "bodge it yourself" regex in all but the most trivial cases.
The HTML::Parse module will allow you to isolate the data, then it becomes trivial to grab what you want from each div
|
|---|