Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Broken News- Reg. Exp.

by Anonymous Monk
on Aug 31, 2004 at 15:05 UTC ( [id://387214]=note: print w/replies, xml ) Need Help??


in reply to Re: Broken News- Reg. Exp.
in thread Broken News- Reg. Exp.

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Broken News- Reg. Exp.
by Aristotle (Chancellor) on Aug 31, 2004 at 21:35 UTC

    Ok, here's my answer, spending about as much time understanding the code as the OP (you?) spent breaking down the issue:

    Don't use regexes to lift content from HTML. Use a HTML parsing module. HTML::TokeParser::Simple is highly recommended, but other equally worthwhile ones also exist.

    Makeshifts last the longest.

Re^3: Broken News- Reg. Exp.
by antirice (Priest) on Aug 31, 2004 at 15:57 UTC
    Pot, meet kettle.

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found