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

[REBOL] Re: Newbie Parse Problem!

From: greggirwin:mindspring at: 3-Jul-2002 14:21

Hi Gary, Try this: UserInput: "hello there!" punctuation: charset ",./\!" parse UserInput [ ["hello" | "hi" | "howdy"] (print 1) ["there" | punctuation] (print 2) [punctuation (print 3) | to end] ] There are many subtleties to PARSE, many of which you only learn about by trying things. It's amazingly powerful though, and worth the effort. BTW, welcome to REBOL! --Gregg