Tokenize a string: Difference between revisions
Content added Content deleted
Line 375: | Line 375: | ||
=={{header|APL}}== |
=={{header|APL}}== |
||
<lang APL> '.',⍨¨ ','(≠⊆⊢)'abc,123,X' ⍝ |
<lang APL> '.',⍨¨ ','(≠⊆⊢)'abc,123,X' ⍝ [1] Do the split: ','(≠⊆⊢)'abc,123,X'; [2] append the periods: '.',⍨¨ |
||
abc. 123. X. ⍝ 3 strings (char vectors), each with a period at the end. |
|||
abc. 123. X. |
|||
</lang> |
</lang> |
||