On This Page

Home / Edge/ Functions/Regex Filter

Regex Filter

The Regex Filter Function filters out events based on regex matches.

This Function uses the JavaScript (ECMAScript) regex engine. If you test patterns in external tools such as Regex101, select the ECMAScript (JavaScript) flavor. For more information, see Regex Flavor.

Usage

Filter: Filter expression (JavaScript) that selects data to feed through the Function. Defaults to true, meaning it evaluates all events.

Description: Simple description of this Function. Defaults to empty.

Final: Toggle on to stop feeding data to the downstream Functions. Default is toggled off.

Regex: Regex to test against. Defaults to empty. You can type in a pattern, or use one of the predefined Regexes.

Additional regex: Select Add Regex to chain extra regex conditions.

Field: Name of the field to test against the regex. Defaults to _raw. Supports nested addressing.

Examples

For a usage example, see our Regex Filtering topic.