Last Index of Character in String
This method is a bit more faster (it searches from the end of the string):
index = your_string:match'^.*()/'
index = string.find(your_string, "/[^/]*$")
(Basically, find the position where the pattern "a forward slash, then zero or more things that aren't a forward slash, then the end of the string" occurs.)