Tokenize a string: Difference between revisions

Content added Content deleted
(Added LFE example)
(→‎{{header|Prolog}}: Add example using SWI Prolog string preds)
Line 1,560: Line 1,560:
Hello.How.Are.You.Today
Hello.How.Are.You.Today
</pre>
</pre>

{{workds with|SWI Prolog 7}}

Using the SWI Prolog string data type and accompanying predicates,
this can be accomplished in a few lines in the top level:
?- split_string("Hello,How,Are,You,Today", ",", "", Split),
| atomics_to_string(Split, ".", PeriodSeparated),
| writeln(PeriodSeparated).
Hello.How.Are.You.Today


=={{header|Python}}==
=={{header|Python}}==