Jump to content

Tokenize a string: Difference between revisions

m
m (→‎{{header|REXX}}: Whitespace)
Line 994:
=={{header|REXX}}==
===version 1===
<lang rexx>sss='Hello,How,Are,You,Today' /*words seperated by commas. */
<lang rexx>
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>
</lang>
Output:
<pre>
<pre style="height:25ex;overflow:scroll">
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. */
<lang rexx>
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>
</lang>
Output is identical to Version 1.
<br>
 
=={{header|Ruby}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.