There's more than one way to do things | |
PerlMonks |
Re^3: Extracting HTML content between the h tagsby vagabonding electron (Curate) |
on Aug 05, 2012 at 14:09 UTC ( [id://985529]=note: print w/replies, xml ) | Need Help?? |
Thank you very much! Just tried the both approaches, it works even if the last h2-tag is missing ( appears in about 10 pages from > 400, for which I used the following workaround: ... with substr as before ... Fortunately they have only one hr-tag in the page :-) With your approach it is not necessary anymore. BTW the content after the <h2>[4] is not important. Thanks again!
In Section
Seekers of Perl Wisdom
|
|