website logo
Navigate through spaces
Carrot reference
⌘K
Carrot reference
Getting started with Carrot
Premade Carrot filters
Operator precedence
Expression truthiness
Carrot fields
Basic Org Information
Compensation
Job Changes
Permissions
Personal
Recruiting
Structure
Time off
Data types
Elements of Carrot expressions
Functions
Operators
Keywords
Aggregators
Docs powered by archbee 
website logo

split()

Divides a String into a list of Strings.

Syntax

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

Sample usage

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

Supported data types

Input type

Return type

Logic

String

List, optionally String

If a String is passed, that String will be parsed into an array (list) of component Strings. Specifying the array index will return the String value of that index.

Unsupported data types

Null

Unsupported data types return Null.

Updated 01 Feb 2023
Did this page help you?
Yes
No
UP NEXT
vestValue()
Docs powered by archbee