Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Matching set of paragraph tags with string inside.

by Tanktalus (Canon)
on Feb 08, 2008 at 21:10 UTC ( [id://667069]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @tagged_paragraphs = $twig->get_xpath('//p[string()=~/\[tag\]/');
    my @texts = map { $_->text() } @tagged_paragraphs;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-04-18 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found