Tokenize a string: Difference between revisions
Content added Content deleted
Line 1,424: | Line 1,424: | ||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
<lang ruby>puts "Hello,How,Are,You,Today".split(',').join('.')</lang> |
<lang ruby>puts "Hello,How,Are,You,Today".split(',').join('.')</lang> |
||
=={{header|Run BASIC}}== |
|||
<lang runbasic>text$ = "Hello,How,Are,You,Today" |
|||
FOR i = 1 to 5 |
|||
textArray$(i) = word$(text$,i,",") |
|||
print textArray$(i);" "; |
|||
NEXT</lang> |
|||
=={{header|Scala}}== |
=={{header|Scala}}== |