mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-05-13 21:14:17 +00:00
add documentation for filter.regex
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: Regex Filter
|
||||
sidebar:
|
||||
order: 1
|
||||
---
|
||||
The `filter.regex` processor matches incoming string payload against a regular expression. If there is a match then the payload is sent through. This processor will return an error if the message being processed is not a string.
|
||||
|
||||
- **type**: `filter.regex`
|
||||
- **params**:
|
||||
- **pattern**: regex pattern to match against the incoming string
|
||||
|
||||
### Example
|
||||
Match strings starting with `hello`
|
||||
```
|
||||
- type: filter.regex
|
||||
params:
|
||||
pattern: "^hello.*"
|
||||
```
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
title: String Filter
|
||||
sidebar:
|
||||
order: 4
|
||||
---
|
||||
The `string.filter` processor takes a string and turns it into an array of bytes. This processor will return an error if the message being processed is not a string.
|
||||
|
||||
- **type**: `string.filter`
|
||||
- **params**:
|
||||
- **pattern**: regex pattern to match against the incoming string
|
||||
|
||||
### Example
|
||||
Match strings starting with `hello`
|
||||
```
|
||||
- type: string.filter
|
||||
params:
|
||||
pattern: "^hello.*"
|
||||
```
|
||||
Reference in New Issue
Block a user