Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

extracting a string after a character

I have the following:

LI04_1503

AS03_18456

AS03_P45

...

I'm using  StringHandling.LEFT(row1.SOURCE_SITE_ID,4)  this extracts the first 4 elements, but what I need is to select everything after the '_' so the result would be:

1503

18456

P45

I'm a beginner, can anyone help me with this string manipulation?

Thanks,

Gary

 

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hello,

Could you please try this method StringHandling.LEFT(row1.SOURCE_SITE_ID,5) to see if it works?

Best regards

Sabrina

Anonymous
Not applicable
Author

StringHandling.LEFT(row1.SOURCE_SITE_ID,5) removes the first 5 characters from the left, however, in my example the number of characters to be removed varies, I need to remove either everything before and including the _ to the left or right. I'm trying to get into Regex syntax to see if that has what I need.