Anonymous user
Tokenize a string: Difference between revisions
m
→{{header|REXX}}: Whitespace
m (→{{header|REXX}}: Whitespace) |
|||
Line 994:
=={{header|REXX}}==
===version 1===
<lang rexx>sss='Hello,How,Are,You,Today' /*words seperated by commas. */▼
▲sss='Hello,How,Are,You,Today' /*words seperated by commas. */
say 'input string='sss /*echo the string to console. */
say
Line 1,010 ⟶ 1,009:
end
say 'End-of-list.' /*Display a trailer for the list*/</lang>
Output:
<pre>
input string=Hello,How,Are,You,Today
Line 1,024 ⟶ 1,022:
End-of-list.
</pre>
===version 2===
<lang rexx>sss='Hello,How,Are,You,Today' /*words seperated by commas. */▼
▲sss='Hello,How,Are,You,Today' /*words seperated by commas. */
say 'input string='sss /*echo the string to console. */
say
Line 1,036 ⟶ 1,034:
end
say 'End-of-list.' /*Display a trailer for the list.*/</lang>
Output is identical to Version 1.
=={{header|Ruby}}==
|