add string.split processor

This commit is contained in:
Joel Wetzell
2025-12-20 11:17:34 -06:00
parent 56a2fa4384
commit 244cb62114
@@ -0,0 +1,18 @@
---
title: String Split
sidebar:
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"]`
```
- type: string.split
params:
separator: ","
```