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.
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.
from customers
filter regex_match(name, pattern: "^c\\d+$") and not regex_match(region ?? "", pattern: "(?:no|so)uth")In a plan:
{
"args": [
{
"col": 1
}
],
"fn": "regex_match",
"options": {
"pattern": "^c\\d+$"
}
}