Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

substring or trim a text string up to a specific character - forum topic by rmline

$
0
0

I am trying to extract only parts of text strings that are of varying length but in each case I am trying to only get only the part of the string that preceeds a specific character.   For example for the string  “one1_YYY” I would want only the “one1” and in “second2-VVV_YYY” I only want “second2-VVV”
To my knowledge substring and trim only work on specific character positions.    Does anyone know of any way to do this?
Thanks
R

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>