[REBOL] Re: Extracting a date..
From: gchiu:compkarori at: 13-May-2001 1:19
On 12 May 2001 13:53:39 +0200
"P-O Yliniemi" <[peoyli--algonet--se]> wrote:
> The part of the file I want to read from looks like:
>
> fdata: {
> ----------------------------------------------------------------------------
> Some other text here
> May 11 2001
> Some other text here
> ----------------------------------------------------------------------------
> }
>
This works I think:
data: load fdata
rule: [ set month [ 'May | 'Jun ] set day integer! set year
integer! ( print rejoin [month "/" day "/" year]
) ]
parse data [ skip some rule ]
--
Graham Chiu