mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-05-13 21:14:17 +00:00
convert all .md to .mdx
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
title: Split String
|
||||
sidebar:
|
||||
label: Split
|
||||
order: 5
|
||||
---
|
||||
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.
|
||||
|
||||
- **type**: `string.split`
|
||||
- **params**:
|
||||
- **pattern**: string to split incoming string on
|
||||
|
||||
### Example
|
||||
Split incoming string on `,` i.e `"one,two,three"` -> `["one","two","three"]`
|
||||
|
||||
```yaml
|
||||
- type: string.split
|
||||
params:
|
||||
separator: ","
|
||||
```
|
||||
Reference in New Issue
Block a user