REGEXP_EXTRACT_ALL
Overview
Extracts all substrings from a string that match a specified capture group in a regular expression, returning an ARRAY<STRING>.
Syntax
Parameters
<str>: STRING type, the string to search.<pattern>: STRING type, a regular expression containing capture groups. Must have at least one()capture group.<group_index>: INT type, specifies which capture group to return (1-based index).
Examples
Related Documentation
- REGEXP_EXTRACT — extracts the first match
- REGEXP_LIKE — tests whether a string matches a pattern
- REGEXP_REPLACE — replaces matched content
