Reputation: 11
How to perform below operation using teradata,
Input string- 'data1 data2 (1) (Ab-123)'
output required- Ab-123
So basically I want data from last bracket.
Upvotes: 0
Views: 191
Reputation: 1269943
This looks like a regular expression:
select regexp_substr('data1 data2 (1) (Ab-123)',
'[(]([^)]*)[)]$'
)
Upvotes: 1