June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
8
Task/Tokenize-a-string/Red/tokenize-a-string.red
Normal file
8
Task/Tokenize-a-string/Red/tokenize-a-string.red
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
str: "Hello,How,Are,You,Today"
|
||||
>> tokens: split str ","
|
||||
>> probe tokens
|
||||
["Hello" "How" "Are" "You" "Today"]
|
||||
|
||||
>> periods: replace/all form tokens " " "." ;The word FORM converts the list series to a string removing quotes.
|
||||
>> print periods ;then REPLACE/ALL spaces with period
|
||||
Hello.How.Are.You.Today
|
||||
Loading…
Add table
Add a link
Reference in a new issue