regexp_substr ( string text, pattern text [, start integer [, N integer [, flags text [, subexpr integer ] ] ] ] ) → textReturns the substring within
string that matches the N'th occurrence of the POSIX regular expression pattern, or NULL if there is no such match; see Section 9.7.3.regexp_substr('ABCDEF', 'c(.)(..)', 1, 1, 'i') → CDEFregexp_substr('ABCDEF', 'c(.)(..)', 1, 1, 'i', 2) → EF