RegexpExtract
Description
RegexpExtract extracts text that matches a regular expression.
Syntax
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
text |
Yes | String, field, or expression | Source text. |
pattern |
Yes | String | Regular expression pattern. |
group_index |
No | Integer | Capture group index to return. |
Notes
Use this function in calculated fields, metric expressions, or query expressions where the function category is supported.
Example
The expression returns the calculated result according to the current query context.