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

Re: How would I find a piece of html from a sourcefile.html?

by athomason (Curate)
on May 26, 2000 at 14:27 UTC ( [id://14943]=note: print w/replies, xml ) Need Help??


in reply to How would I find a piece of html from a sourcefile.html?

Comments make HTML extraction even more difficult than it usually is. However, if you're dealing with fairly standard HTML you could use
$page =~ /<!--\w+(.*)\w*-->;/; $commented = $1;
This will grab the string inside the comment; add appropriate qualifiers to the regexp as necessary (or use another on $commented) if you only want to pick certain stuff out.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found