mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-09-01 02:09:02 +00:00
23 lines
549 B
Plaintext
23 lines
549 B
Plaintext
---
|
|
title: Split String
|
|
sidebar:
|
|
label: Split
|
|
order: 5
|
|
---
|
|
import SchemaInfo from '../../../../components/SchemaInfo.astro';
|
|
|
|
The `string.split` processor takes a string and turns it into an array of strings by splitting on `params.separator`. This processor will return an error if the message being processed is not a string.
|
|
|
|
<SchemaInfo type="processor" id="string.split"/>
|
|
|
|
### Example
|
|
|
|
Split incoming string on `,` i.e `"one,two,three"` -> `["one","two","three"]`
|
|
|
|
```yaml
|
|
- id: split
|
|
type: string.split
|
|
params:
|
|
separator: ","
|
|
```
|