pyflink.table.expression.Expression.regexp_extract_all#
- Expression.regexp_extract_all(regex, extract_index=None) Expression[source]#
Extracts all the substrings in str that match the regex expression and correspond to the regex group extract_index. regex may contain multiple groups. extract_index indicates which regex group to extract and starts from 1, also the default value if not specified. 0 means matching the entire regular expression. null if any of the arguments are null or invalid.
- Parameters:
regex – A STRING expression with a matching pattern.
extract_index – An optional INTEGER expression with default 1.
- Returns:
An ARRAY<STRING> of all the matched substrings.
Added in version 1.12.0.