OPAL Regex Functions

Regular expression functions use regular expressions as input.

Regular expressions in Observe must be compile time constants – they cannot be compiled based on data received from data streams.

Observe uses the POSIX flavor of the regular expression language, which is standard in data storage and processing. For more information, see:

Function

Description

match_regex

Return true if the argument input string or object (converted to a string) matches the argument regular expression.

match_regex_all

Returns an array containing all parts of the argument string that match the

regex

Coerce a string literal to a regular expression.

replace_regex

Replaces all instances of a matched regex pattern in the input string with a provided value.