Louis Davidson continues a series on regular expressions:
The
REGEXP_SUBSTR
function extracts parts of a string based on a regular expression pattern. It has some similarieties with theSUBSTRING
function, but with some important (and interesting) differences. This function returns Nth occurrence of a substring that matches the regex pattern.
Read on to see how it compares to the traditional SUBSTRING()
function.