regexp_substr() function
Returns the portion of a string which matches a supplied regular expression.
Syntax
regexp_substr(string,regex)
Arguments
string → is string. The input string.
regex → is string. The regular expression to match against. Backslash characters must be double escaped (eg "\\s" to match a white space character).
Example
regexp_substr('abc123','(\\d+)') → '123'