text

regexp_substr

Returns the selected matching substring or SQL NULL when none exists; subexpr can select a capture group.

Formal Syntax & Structure

sql syntaxsql
regexp_substr(string, pattern [, start [, N [, flags [, subexpr]]]])

Working Example

Example Snippetsql
SELECT regexp_substr('x12 y34', '[0-9]+', 1, 2);
SQL Reference