SQL Language (MOSC)

MOSC Banner

REGEXP_SUBSTR Conversion

Hello Gurus,


I am trying to convert the following code from oracle:

SELECT DISTINCT REPLACE(SUBSTR (REGEXP_SUBSTR (code,'[^,]+',1,LEVEL),2,8),']','') code
FROM DUAL 
CONNECT BY REGEXP_SUBSTR (code, '[^,]+', 1, LEVEL) IS NOT NULL;

Please assist to convert it into some SUBSTR / INSTR combination or CASE function.

Thanks.

Regards,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center