Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[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