Anonymous user
Tokenize a string: Difference between revisions
m
→{{header|REXX}}
Line 1,024:
End-of-list.
</pre>
===version 2===
<lang rexx>
sss='Hello,How,Are,You,Today' /*words seperated by commas. */
say 'input string='sss /*echo the string to console. */
say
say 'Words in the string:' /*Display a header for the list. */
do until sss=='' /*keep going until SSS is empty. */
parse var sss x ',' sss /*parse words delinated by comma.*/
say x'.' /*show a word appended with a '.'*/
end
say 'End-of-list.' /*Display a trailer for the list.*/
</lang>
=={{header|Ruby}}==
|