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

[REBOL] Re: parse oddity

From: agem:crosswinds at: 26-Mar-2001 21:17

> Hello, > > Is the following behavior expected?
yes
>>> parse "html" ["html" | "htm"] >== true > >and > >>> parse "html" ["htm" | "html"] >== false >(the above is what bothers me) >
["htm"] eats "htm", rest "l". ["htm"] has eaten, so [| "html"] is ignored. there is a rest, so 'false . had similar case with ["s" | "sw"] which has to be ["sw"|"s"] generally longest case first.