[REBOL] Re: parse, again...
From: nitsch-lists:netcologne at: 1-Nov-2001 18:37
RE: [REBOL] parse, again...
[hallvard--ystad--helpinhand--com] wrote:
> 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
>
> This returns false because the website ends with some whitespace after the
> last tag. I redefine 'html-code and try again:
> >> html-code: [ copy tag ["<" thru ">"] | copy txt [to "<" | thru end]]
> == [copy tag ["<" thru ">"] | copy txt [to "<" | thru end]]
> >> parse/all read http://www.rebol.com/ [to "<" some html-code]
> connecting to: www.rebol.com
> == false
>
well,
>> parse "hello" [thru end]
== false
>> parse "hello" [to end]
== true
;-) Volker