<- CRPL reference <- String Commands

Split

ArgumentsResultNotation
String, Character List s1 s2 – L1

Description

Splits s1 using s2 as the delimiter and leaves the result as a list on the stack.

Examples

# Make a fruity list
"apple banana cherry grape tomato" " " Split ->fruitList

# Make a list of names
"John Doe,Mary Jane,Bubba Smith,Forrest Gump" "," Split ->nameList