# Filter

Splits up the input using the specified delimiter and then filters each branch based on a regular expression. Filter lives in the **Utils** category of the `fx` menu.

## Parameters

| Parameter        | Type    | Required | Default     | Description                                                                                              |
| ---------------- | ------- | -------- | ----------- | -------------------------------------------------------------------------------------------------------- |
| Input            | string  | yes      | —           | Value to transform. Previous step output or a literal.                                                   |
| Delimiter        | string  | no       | `Line feed` | Choose one of: `Line feed`, `CRLF`, `Space`, `Comma`, `Semi-colon`, `Colon`, `Nothing (separate chars)`. |
| Regex            | string  | no       | —           | Argument value for this operation.                                                                       |
| Invert condition | boolean | no       | `false`     | Disabled by default.                                                                                     |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                          |
| -------- | ------------------------------------ |
| `string` | Result of the Filter transformation. |

## Example

<details>
<summary>Run Filter</summary>

Splits up the input using the specified delimiter and then filters each branch based on a regular expression. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Delimiter**, **Regex**, **Invert condition** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
