# Split Text

## Overview

This operation splits a given text into smaller texts. A delimiter can be specified to define where the text should be divided.

## Syntax

Two syntaxes are supported for this operation.

#### Option 1

```
the text is "{input}"
split the text
```

#### Option 2

In this syntax, the parts of the text that are split can be further referenced via `the parts`.

```
the text is "{input}"
split the text into parts
```

#### Specifying a Delimiter *(Optional)*

Optionally, **the delimiter** can be specified to split the text. By default, a space is used as the delimiter.

```
the text is "{input}"
split the text into parts
    the delimiter is "{delimiter}"
```

## Data

The table below lists the names of the data elements in this operation and indicates which can be renamed in the syntax.

| Data Name     | Can Be Renamed |
| ------------- | -------------- |
| the text      | Yes            |
| the delimiter | No             |
| the parts     | No             |

## Parameters

**Parameters** are placeholders for data. Refer to the table below for details on each parameter in this operation. In the syntax, replace parameters with your own values.

<table><thead><tr><th>Parameters</th><th width="258.5546875">Description</th><th width="248.921875">Examples</th><th>Required</th></tr></thead><tbody><tr><td><code>input</code></td><td>The text to be split.</td><td>How to Build Your Automation</td><td>Yes</td></tr><tr><td><code>delimiter</code></td><td>A character or sequence of characters used to split the text. Default delimiter is a space, if not specified.</td><td><ul><li>@</li><li>;</li><li>,</li></ul></td><td>Optional</td></tr></tbody></table>

## Examples

### 1. Split a Title

No delimiter is specified in this example, so a space is used by default.

{% tabs %}
{% tab title="Automation" %}

```
the title is "How to Build Your Automation"
split the title
```

{% endtab %}

{% tab title="Results" %}

```
How
to
Build
Your
Automation
```

{% endtab %}
{% endtabs %}

### 2. Split an Email

In this example, a delimiter is specified.

{% tabs %}
{% tab title="Automation" %}

```
the email is "user@domain.com"
split the email
    the delimiter is "@"
```

{% endtab %}

{% tab title="Results" %}

```
user
domain.com
```

{% endtab %}
{% endtabs %}
