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

[REBOL] Re: newbie question

From: nitsch-lists:netcologne at: 27-Feb-2004 18:12

Am Freitag, 27. Februar 2004 17:28 schrieben Sie:
> ok, it appears that 'any' or 'some' will traverse the entire input like I > need. Not that I understand it fully but at least it appears to work. >
Yes, its like a loop. the difference is how the part after the loop is handled. 'any -> 0-n matches, 'some -> 1-n matches. parse string[ "start" any ["middle"] "end" ]
>> parse "start middle end"[ "start" any ["middle"] "end" ]
== true
>> parse "start end"[ "start" any ["middle"] "end" ]
== true
>> parse "start middle end"[ "start" some ["middle"] "end" ]
== true
>> parse "start end"[ "start" some ["middle"] "end" ]
== false -Volker