Tokenize a string: Difference between revisions
Content added Content deleted
(added Zig) |
(Add lang example) |
||
Line 2,177: | Line 2,177: | ||
{S.replace , by . in Hello,How,Are,You,Today}. |
{S.replace , by . in Hello,How,Are,You,Today}. |
||
-> Hello.How.Are.You.Today. |
-> Hello.How.Are.You.Today. |
||
</syntaxhighlight> |
|||
=={{header|Lang}}== |
|||
<syntaxhighlight lang="lang"> |
|||
$str = Hello,How,Are,You,Today |
|||
fn.println(fn.join(\., fn.split($str, \,))) |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||