Need an Regex to display a string from the second last occurence of a character
Example: "/folder1/folder2/folder3/folder4/"
In this case, if I ask for 2nd occurrence of slash (/) from last , it appears before folder4, and I expect to return substring from 2nd last occurrence of a character.
i.e the return string should be folder4/