Louis Davidson continues a series on regular expressions:
The
REGEXP_SUBSTRfunction extracts parts of a string based on a regular expression pattern. It has some similarieties with theSUBSTRINGfunction, 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.