> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reelevant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Split

> Split a string into an array

## Overview

The `split` transformation splits a string into an array based on a delimiter.

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
split(<variable>, delimiter=",")
```

## Parameters

| Parameter   | Type   | Required | Description                       |
| ----------- | ------ | -------- | --------------------------------- |
| `variable`  | string | Yes      | The string to split               |
| `delimiter` | string | Yes      | The delimiter character or string |

## Examples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
split(<variable>, delimiter=",")
split(<variable>, delimiter=" ")
```
