Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Extracting HTML content between the h tags

by vagabonding electron (Hermit)
on Aug 05, 2012 at 14:22 UTC ( #985530=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @solution_2 = $content->findvalues( './h2[4]/preceding-sibling::*' 
    +);
    unless ( @solution_2 )
    {
       @solution_2 = $content->findvalues( '//hr/preceding-sibling::*' );
    }
    
  2. or download this
    @solution_2 = $content->findvalues( '//hr/preceding-sibling::p[precedi
    +ng-sibling::h2[3]]' );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985530]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (17)
As of 2014-07-30 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (234 votes), past polls