Eduardo Hitek
Eduardo Hitek

Reputation: 613

Split SQL Columns by Regex Substr

I need to split this SQL Columns using Regex and extracted the last part (LN1_DEF_DEPT). Can someone help me?

LDS^1^LN1_DEF_DEPT

Thanks in Advance!

Upvotes: 0

Views: 278

Answers (1)

Oto Shavadze
Oto Shavadze

Reputation: 42763

If I correct understood, you need this

select REGEXP_SUBSTR('LDS^1^LN1_DEF_DEPT',  '[^\^]+$') from dual

Upvotes: 2

Related Questions