Is there any way to use the FIND function to search a field backwards (in reverse order)?
In other words, I want to find the LAST occurrence of a certain letter/symbol in a field.
So, let’s say I had this text in a field:
cats_and_dogs_in_playground_part2_lg600125X7aspUT
I want to find the position number of the FINAL underscore character so I could then use the LEFT or RIGHT functions to strip out all of the text before or after the position number of the final underscore character.
The problem is that all of the fields will have a varying number of underscores, and all of the fields will have a varying number of characters both before & after the final underscore
If the FIND formula enabled us to search BACKWARDS in a field, I could simply tell it to stop at the very first underscore character that it finds when searching in reverse.
Or — if Airtable gave me some way to COUNT the number of underscores within the field (which would result in 6, based on the example above), and then if there was some way for me to tell it to FIND the position number of the 6th underscore (instead of the 1st matching underscore), then I would have the position number that I need.
I’m curious if there’s even a way to figure out this puzzle. I’m assuming that this would need to be done with Javascript using the Scripting Block.