Skip to main content

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

NameTypeDescription
inputstringThe string to test against the pattern.

Outputs

NameTypeDescription
passstringThe original input string, forwarded when the pattern matches.
failstringThe 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 i for case-insensitive or g for 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.