snowflake.snowpark.functions.regexp_extract¶
- snowflake.snowpark.functions.regexp_extract(value: ColumnOrLiteralStr, regexp: ColumnOrLiteralStr, idx: int) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.4.0/src/snowflake/snowpark/functions.py#L2369-L2396)¶
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: