Tokenize a string: Difference between revisions

no edit summary
No edit summary
Line 1,850:
End</syntaxhighlight>
Output:
<pre>
Hello.How.Are.You.Today
</pre>
 
=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
window 1, @"Tokenize a string"
 
void local fn DoIt
CFStringRef string = @"Hello,How,Are,You,Today"
CFArrayRef tokens = fn StringComponentsSeparatedByString( string, @"," )
print fn ArrayComponentsJoinedByString( tokens, @"." )
end fn
 
fn DoIt
 
HandleEvents
</syntaxhighlight>
{{out}}
<pre>
Hello.How.Are.You.Today
408

edits