Taking the second-to-last-element of a string in pipeline builder

Hello! Is it possible to get the second-to-last element of a string in pipeline builder (or any element in a string, for that matter)? Thank you!

Hey when you say element are you referring to a word or letter?

You can use regex extract for either of the above the regex will just change depending on what you’re trying to extract or split on an empty string and then take array element -2

Or the “Right of string” and “Left of string” expressions take the right-most 2 characters, and then the leftmost 1 character

1 Like