Tokenize a string: Difference between revisions
Content added Content deleted
No edit summary |
m (→version 1: legitimized the REXX program's 1st statement. -- ~~~~) |
||
Line 1,366: | Line 1,366: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
===version 1=== |
===version 1=== |
||
<lang rexx> |
<lang rexx>/*REXX program to seperate a string of comma-delimited words. */ |
||
sss='Hello,How,Are,You,Today' /*words seperated by commas. */ |
|||
say 'input string='sss /*echo the string to console. */ |
say 'input string='sss /*echo the string to console. */ |
||
say |
say |
||
Line 1,382: | Line 1,383: | ||
say 'End-of-list.' /*Display a trailer for the list*/</lang> |
say 'End-of-list.' /*Display a trailer for the list*/</lang> |
||
'''output''' |
|||
Output: |
|||
input string=Hello,How,Are,You,Today |
input string=Hello,How,Are,You,Today |
||