[REBOL] Re: Proper usage of "thru" in parse
From: compkarori::gmail::com at: 21-Jul-2006 8:15
I think this is an easier way to do things for those new to parse - convert
it first to datatype! and then use block parsing.
text:"<normal>item1<end><highlight>item2<end><highlight>item3<end><normal>item4<end>"
==
{<normal>item1<end><highlight>item2<end><highlight>item3<end><normal>item4<end>}
>> data: load/markup text
== [<normal> "item1" <end> <highlight> "item2" <end> <highlight> "item3"
<end> <normal> "item4" <end>]
>> parse data [ some [ copy item tag! | copy item string! (print item) ]]
item1
item2
item3
item4
== true
--
Graham Chiu
http://www.compkarori.com/emr/