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

[REBOL] Re: Bug in parse?

From: robert:muench:robertmuench at: 22-Aug-2001 16:55

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf > Of Richard Smolak > Sent: Wednesday, August 22, 2001 10:07 AM > To: [rebol-list--rebol--com] > Subject: [REBOL] Bug in parse?
Hi, well only my personal theory: Parse will filter the separation sequence for you.
> >> parse/all "^/" "^/" > == [""]
Here parse doesn't find anything before the separation sequence -> ""
> >> parse/all "^/ " "^/" > == ["" " "]
Same here and a space later.
> >> parse/all " ^/" "^/" > == [" "] ;why is not the result [" " ""] ??? Maybe
Here parse finds a space and than the separation sequence AND end-of-string. Parse stops at end-of-string, that's why you only get the " " sequence as result. Robert