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

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to