How do you get the last index of a character in a string in Lua?

"/some/path/to/some/file.txt"

How do I get the index of the last / in the above string?

lua
Edit
Report