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

Re: Extract text from HTML

by osama (Scribe)
on Dec 29, 2002 at 20:56 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2023-03-31 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?