---
updatedAt: 2025-12-05T18:41:41.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# split

```
split(value: string, separator: const string) -> array of string
```

Splits the string into an array, based on the separator.

# Domain

This is a scalar function (calculates a single output value for a single input row).

# Categories

* [Semistructured](function#semistructured-functions)
* [String](function#string-functions)

# Examples

<OpalCodeBlock code={
`make_col date_parts:split("2024-04-05", "-")
`}/>

This splits the given string by dashes, returning a JSON array of the elements: `["2024", "04", "05"]`.