Last value of delimeted string

Hi
I am new to Knime.I have a string column with Multiple Length strings and each string has a delimeter “/”. What I was looking to get the Second last value of each string.Please find the attached reference

Capture

Hi @t_kurian

based on your earlier post Last value of delimeted string i think you should change your thinking about single string manipulation and look for a more generic solution.

e.g.

Example.knwf (53.9 KB)

BR
Hermann

2 Likes

Hello @t_kurian,

you can also try to first cut last value together with / char using following syntax
substr($col$,0,lastIndexOfChar($col$,'/' )) and then same solution from linked topic as your desired value will be now last. Everything can be done in one String Manipulation node but I suggest to use 2 cause of readability.

Br,
Ivan

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.