Carrot reference
Functions
split()
Divides a String into a list of Strings.
split(string, delimiter)
- string - the String value to be divided into an array of sub-Strings
- delimiter - the character or set of characters that indicate where to split the input String
- Return type: List
split("I am a string", ' ') returns a list of component Strings consisting of I, am, a, and string
split("This-is-text", '-')[2] returns text
Updated 04 Oct 2023
Did this page help you?