From 56a2fa43840e8c53a4566cdb775befb1447f2d14 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 20 Dec 2025 11:03:32 -0600 Subject: [PATCH] add string.filter processor --- src/content/docs/processors/string/filter.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/content/docs/processors/string/filter.md diff --git a/src/content/docs/processors/string/filter.md b/src/content/docs/processors/string/filter.md new file mode 100644 index 0000000..83d7737 --- /dev/null +++ b/src/content/docs/processors/string/filter.md @@ -0,0 +1,18 @@ +--- +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.*" +``` \ No newline at end of file