Regex Check
Runs on: Shared — pure logic, runs on the Streamerly backend or inside a chatbox overlay.
The Regex Check node tests whether a string matches a regular expression pattern. If the pattern is found anywhere in the input string, the data continues down the Pass path. If there is no match, it goes down the Fail path. The original string is forwarded on both outputs so it stays available for further processing regardless of which branch executes.
This is the right tool when you need more powerful text matching than a simple equality check. Use it to detect whether a chat message contains a link, whether a viewer's username follows a certain format, or whether a channel point redemption message includes a specific keyword pattern.
Inputs
| Name | Type | Description |
|---|---|---|
input | string | The string to test against the pattern. |
Outputs
| Name | Type | Description |
|---|---|---|
pass | string | The original input string, forwarded when the pattern matches. |
fail | string | The original input string, forwarded when the pattern does not match. |
Configuration
- Pattern: The regular expression pattern to test. Standard regex syntax — for example,
https?://to detect URLs, or\d{3,}to find strings containing three or more consecutive digits. - Flags: Optional regex flags such as
ifor case-insensitive orgfor global matching.
Example
Use a Regex Check node with the pattern https?://\S+ after a Chat Message trigger. If the message contains a URL, route it down the Pass path to a Moderation Check or automatic timeout effect. Messages without links go down the Fail path and are left alone.