Tokenize a string: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 1,840: Line 1,840:
println[join[".", split[",", "Hello,How,Are,You,Today"]]]
println[join[".", split[",", "Hello,How,Are,You,Today"]]]
</syntaxhighlight>
</syntaxhighlight>

=={{header|Gambas}}==
'''[https://gambas-playground.proko.eu/?gist=218e240236cdf1419a405abfed906ed3 Click this link to run this code]'''
<syntaxhighlight lang="gambas">Public Sub Main()
Dim sString As String[] = Split("Hello,How,Are,You,Today")

Print sString.Join(".")

End</syntaxhighlight>
Output:
<pre>
Hello.How.Are.You.Today
</pre>


=={{header|FutureBasic}}==
=={{header|FutureBasic}}==
Line 1,869: Line 1,856:
</syntaxhighlight>
</syntaxhighlight>
{{out}}
{{out}}
<pre>
Hello.How.Are.You.Today
</pre>

=={{header|Gambas}}==
'''[https://gambas-playground.proko.eu/?gist=218e240236cdf1419a405abfed906ed3 Click this link to run this code]'''
<syntaxhighlight lang="gambas">Public Sub Main()
Dim sString As String[] = Split("Hello,How,Are,You,Today")

Print sString.Join(".")

End</syntaxhighlight>
Output:
<pre>
<pre>
Hello.How.Are.You.Today
Hello.How.Are.You.Today