Let's say I have a column which has values like:
foo/bar
chunky/bacon/flavor
/baz/quz/qux/bax
I.e. a variable number of strings separated by /
.
In another column I want to get the last element from each of these strings, after they have been split on /
. So, that column would have:
bar
flavor
bax
I can't figure this out. I can split on /
and get an array, and I can see the function INDEX to get a specific numbered indexed element from the array, but can't find a way to say "the last element" in this function.