I have a conundrum that I hope someone can please help me with! It’s all about the final “/”
Basically I want to extract the last part of a file path + filename string, to leave only the filename. The path and name can all be different lengths, and have different folder depths. The key is to take everything AFTER the final “/” Examples below…
/Server/over_there/no_really/this_one/what a long path/Big File.mov
Any ideas please, fantastic Airtable community?
Solved! Go to Solution.
This is really a helpful solution!
I'm still stuck with another related issue. I need to extract the string from the second-to-last section of a file path, essentially to isolate the parent folder of a file or folder. I've looked into regular expressions and have found them to be a bit daunting, so I can't build upon this solution here.
Using EastEndTom's sample, I need to extract "pictures" from /Volumes/my_drive/documents/pictures/A001.jpeg.
Does anyone have any suggestions for me?