Tokenize a string: Difference between revisions

Content deleted Content added
No edit summary
Adonis (talk | contribs)
Python version
Line 19:
my @words = split(/,/, "Hello,How,Are,You,Today");
print $_.'.' for (@words);
 
==[[Python]]==
[[Category:Python]]
'''Interpreter:''' Python 2.5
 
words = "Hello,How,Are,You,Today".split(',')
for word in words:
print word
 
==[[Ruby]]==