REGEXP_SUBSTR in Teradata 14

The Teradata Database channel includes discussions around advanced Teradata features such as high-performance parallel database technology, the optimizer, mixed workload management solutions, and other related technologies.

REGEXP_SUBSTR in Teradata 14

am having data in a column like **bleep**/XXXX/XXXX/XYYUX/YYY. I am trying to extract only the first two digits after the 3rd backslash(/) in the column which is 'XY' in this example. Can you please help? Thanks!

Tags (1)

Re: REGEXP_SUBSTR in Teradata 14

SELECT  Substr(REGEXP_SUBSTR('**bleep**/XXXX/XXXX/XYYUX/YYY',  '(\/)(..)',1,3),2)