I want to extract a substring from a string based on the delimiter /. The substring extraction has to be hungry so the I want to get all characters from the string up to the last /. Example:
String: /ab/bcd/casd/adsd/se/23
Substring: /ab/bcd/casd/adsd/se/
P.S.: I have seen other QnAs and they don't answer the specific part where the last delimiter occurrence should be used to extract the substring.