Jump to content

Tokenize a string: Difference between revisions

(Added Wren)
Line 3,114:
 
=={{header|Vala}}==
<lang valaVala>//void declaremain() test{ string
string s = "Hello,How,Are,You,Today";
print(@"$(string.joinv(".", s.split(",")))");
// create array of strings, could use var words instead if desired
}
string[] words = s.split(",");
{{out}}
// create string by joining array of strings with .
<pre>Hello.How.Are.You.Today</pre>
string joined = string.joinv(".", words);</lang>
 
=={{header|VBA}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.