[REBOL] Re: parse, again...
From: ingo:2b1 at: 1-Nov-2001 20:52
Hi Hallvard,
I'll answer your question as meaning "how do I get the work done?",
so ...
Once upon a time Hallvard Ystad spoketh thus:
> I seem to get something wrong. Look here:
> >> html-code: [ copy tag ["<" thru ">"] | copy txt to "<" ]
> == [copy tag ["<" thru ">"] | copy txt to "<"]
> >> parse/all read http://www.rebol.com/ [to "<" some html-code]
> connecting to: www.rebol.com
> == false
I'd do it this way:
>> html-code: [ some [ set tag tag! | set str string! ]]
== [ some [ set tag tag! | set str string! ]]
>> parse/all load/markup read http://www.rebol.com/ html-code
== true
(load/markup parese the block and returns a block containing
tag!s and string!s, so ost of your work has already been done.)
kind regards,
Ingo