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

Re: Extract text from HTML

by osama (Scribe)
on Dec 29, 2002 at 20:56 UTC ( [id://222958]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # THIS IS BAD
    s/(\s|\ )+/ /g;
    s/<(BR|P)>/\n/ig;
    s/<.+?>//g;
    
  2. or download this
    use HTML::TokeParser;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-03-28 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found