text
regexp_match
Returns a text array for the first match (capture groups when present), or SQL NULL when absent.
Formal Syntax & Structure
sql syntaxsql
regexp_match(string, pattern [, flags])Working Example
Example Snippetsql
SELECT regexp_match('item-42', '([a-z]+)-([0-9]+)');