I am trying to get a string after the last "/" character. The thing is, the number of "/" can differ. Examples:
Desktop/Picures/test.txt -> test.txt
Templates/DIR1/DIR2/DIR2/test2 -> test2
d1/d2/d3/d4/d5/d6 -> d6
...And so on, you get the idea. How can I achieve this? (btw, I need to set the result to a variable too.)