How can a string with a sentence be converted to a series of words, e.g. convert following string to:
str: "This is a sentence with some words" to a series of:
["This" "is" "a" "sentence" "with" "some" "words"] There seems to be a split function in Rebol3 but no such function in Rebol2.
I tried following code with parse but it does not work:
str: "This is a sentence with some words" strlist: [] parse str [ some got: " " (append strlist got) ] Error is:
** Script Error: Invalid argument: got How can this be achieved (a method with parse will be preferable)?
parse "foo bar baz" " "