Tokenize a string: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 1,840:
println[join[".", split[",", "Hello,How,Are,You,Today"]]]
</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}}==
Line 1,869 ⟶ 1,856:
</syntaxhighlight>
{{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>
Hello.How.Are.You.Today
|