Skip to main content
Scalar function
Returns NULL for NULL value/pattern or when there is no match.

Syntax

Scalar

Arguments

Returns

  • Type: STRING
  • Possible values: The first full match (capture group zero).
  • NULL behavior: Returns NULL for NULL value/pattern or when there is no match.

Properties

Examples

Typical behavior

Return the first matching word

Limitations

  • Invalid regular expressions raise an execution error.
Last modified on October 15, 2026