Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2016-10-01 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (6 votes). Check out past polls.