Segfault has asked for the wisdom of the Perl Monks concerning the following question:
I've decided to write a script to parse the news headlines from BeOSCentral.com, using the back-end that provides the info in one big chunk of plain text. It's a long, single line of text, with multiple parts each in this format:
%% Headline Text <date> <time> <article URL> <brief description>My question is, how can I separate each of these blocks of data from this big block that I get from the back-end, and then work with the headline, date, etc. as I wish? What would be the best approach to splitting this up?
Thanks for any tips you can provide. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing News from a Site Backend
by chromatic (Archbishop) on Feb 28, 2001 at 10:55 UTC | |
|
(dkubb) Re: (2) Parsing News from a Site Backend
by dkubb (Deacon) on Feb 28, 2001 at 12:53 UTC | |
|
Re: Parsing News from a Site Backend
by Yohimbe (Pilgrim) on Feb 28, 2001 at 10:57 UTC | |
|
Re: Parsing News from a Site Backend
by archon (Monk) on Feb 28, 2001 at 11:00 UTC | |
|
Re: Parsing News from a Site Backend
by princepawn (Parson) on Feb 28, 2001 at 22:21 UTC |