creating blocks
[1/4] from: gchiu:compkarori at: 16-Dec-2000 16:49
Just a quick question...
I have some text with newlines etc that I want to convert to
a block of lines. I could just write it to a temporary
file, and then do a read/lines on it, but presumably there's
another way ...
--
Graham Chiu
[2/4] from: allenk::powerup::com::au at: 16-Dec-2000 14:53
Hi Graham,
str: {this is some text with lines
in it. We want to split it into
lines in a block}
>> parse/all str "^/"
== ["this is some text with lines" "in it. We want to split it into" "lines
in a block"]
Cheers,
Allen K
[3/4] from: gchiu:compkarori at: 16-Dec-2000 20:48
On Sat, 16 Dec 2000 14:53:14 +1000
"Allen Kamp" <[allenk--powerup--com--au]> wrote:
> >> parse/all str "^/"
> == ["this is some text with lines" "in it. We want to
> split it into" "lines
> in a block"]
Thanks Allen, I should have thought of that.
I got my tv scanner working now. An agent that is run as a
daily rebocron job that scans the tv listings for keywords,
and emails me with the results each morning.
http://www.compkarori.co.nz/reb/tvguide.r
PS: only works for New Zealand listings :-)
--
Graham Chiu
[4/4] from: mat:eurogamer at: 16-Dec-2000 16:28
Heya Graham,
GC> I have some text with newlines etc that I want to convert to
GC> a block of lines. I could just write it to a temporary
GC> file, and then do a read/lines on it, but presumably there's
GC> another way ...
Heh, I asked that one didn't I.
parse/all text "^/"
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com