snowflake.snowpark.functions.regexp_extract¶
- snowflake.snowpark.functions.regexp_extract(value: Union[Column, str], regexp: Union[Column, str], idx: int) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L2684-L2711)¶
Extract a specific group matched by a regex, from the specified string column. If the regex did not match, or the specified group did not match, an empty string is returned.
Example: