regex_match

Whether option pattern (hint-core's linear-time regex subset; ASCII \d \w \s) occurs anywhere in a, as Python's re.search.

ScalarDeterministic

Flags

Flag Value
Kind scalar
Nulls a null argument gives null
Deterministic yes
Order matters no
Decomposable no

Example

A pipeline from the language's tested corpus that uses regex_match, over the example tables.

Hint
from customers
filter regex_match(name, pattern: "^c\\d+$") and not regex_match(region ?? "", pattern: "(?:no|so)uth")

In a plan:

JSON
{
  "args": [
    {
      "col": 1
    }
  ],
  "fn": "regex_match",
  "options": {
    "pattern": "^c\\d+$"
  }
}