[REBOL] Re: Parse doing weird things...
From: ingo:2b1 at: 20-Mar-2001 0:15
Hi Mat, Petr,
have you noticed?
Mats rule:
> > >> parse copy/part find tmp/content "Etymology:" 256 [thru "Etymology:"
> copy DictEnty to "<br>"]
> > == false
Petrs rule:
> ->> parse str [thru "Etymology:" copy DictEntry to "<br>" to end]
> == true
Petr silently included the "to end" at the end, in the original rule,
when <br> is found, and the rule is worked thruogh, there are still
characters in the string to be parsed, so parse thinks "Nah, that can't
be right". Include "to end" to always get to the end of the string,
and you are done.
(Why did it work berfore? Don't know, maybe the "<br>" tag was at the
end of the string?)
kind regards,
Ingo