Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Extracting HTML content between the h tags

by Gangabass (Vicar)
on Aug 06, 2012 at 01:01 UTC ( #985580=note: print w/replies, xml ) Need Help??


in reply to Re^2: Extracting HTML content between the h tags
in thread Extracting HTML content between the h tags

According to your HTML preceding-sibling for hr will be div tag but not p tag... So this code will find all ps after last h2:
$p->findnodes('//h2[4]/following-sibling::p');
Or (more flexible):
$p->findnodes('//h2[last()]/following-sibling::p');

Replies are listed 'Best First'.
Re^4: Extracting HTML content between the h tags
by vagabonding electron (Chaplain) on Aug 06, 2012 at 15:31 UTC
    Thank you very much!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985580]
help
Chatterbox?
[Corion]: 100% of my FF add-ons are unsupported currently. Maybe upgrading Firefox wasn't such a good idea after all ;)
[Corion]: Also suffering is my 2-factor Github sign-in, as now, FF can't read my USB token anymore. "This was a horrible idea" is slowly dawning on me ;)
[Corion]: Yay. FF now has u2f built-in (behind an about:config setting), so using an USB token to sign in actually works :)
[Corion]: So, it's not all bad with the new FF :)
[holli]: 2factor is a bit too much for me. i just use passwords like jhbn8789q27312laks dmaw98^
[moritz]: isn't there also some about:config setting to enable the old plugin API?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-11-20 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (293 votes). Check out past polls.

    Notices?