develooper Front page | perl.beginners | Postings from December 2002

simple string parsing

Thread Next
From:
Robert Boardman
Date:
December 27, 2002 03:54
Subject:
simple string parsing
Message ID:
20021227114659.60970.qmail@onion.perl.org
Hi all
I'm attempting to write my first perl script to parse a couple of lines 
and would appreciate some help extracting data from the folloing example

Data:
<programme start="20021221235500 UTC" stop="20021222001000 UTC" 
channel="carlton.com">

I want to extract 0021221235500 and 20021222001000 and carlton.com

I have tried to to use pattern matching using =~ etc but cannot seem to 
get the pattern correct
anybody any ideas?

Robb


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About