Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Spliting a delimited string into variables

by Popcorn Dave (Abbot)
on Apr 07, 2011 at 20:03 UTC ( #898183=note: print w/replies, xml ) Need Help??


in reply to Re: Spliting a delimited string into variables
in thread Spliting a delimited string into variables

I've got to second the vote for HTML::Parser or similar parsing engines.

A long time ago, before RSS feeds, I wrote a program to parse various newspaper websites and did the regexes by hand. I had 24 different rules for 90+ papers. When I rewrote it, I got it down to 9 rules, mainly based on web page design, since I used a parsing engine.

You're going to save yourself a ton of work since if the data changes you're going to have to rewrite your regexes each time.


To disagree, one doesn't have to be disagreeable - Barry Goldwater

  • Comment on Re^2: Spliting a delimited string into variables

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://898183]
help
Chatterbox?
[Corion]: I hope you're well ;)
[marto]: running late today, get to work and people are just sitting around. "can't delete file, quota exceeded"
[Corion]: marto: Oy :-/
[Corion]: Ah, it's only "quota exceeded", not "filesystem full", so it's "merely" an administrative act to up the FS quota resp. inode quota
[Corion]: I've been on databases where I couldn't drop a table or delete rows because the DB was full. Not so much fun...
[marto]: meh, the admins are lazy, I just piped null to some old large log files, problem solved

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-01-24 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.