I have a String like this:
www.myserver.net/Files/Pictures/2014/MyImage.jpg
And I want to split it, so I get the Substring after the last occurence of /. Which means I like to get MyImage.jpg I tried it like this:
MsgBox(URL.Substring(URL.LastIndexOf("/"), URL.Length - 1))
But that wont work. Can someone help me out how to do this in VB.Net? C# is also okay, after I've understood the logic, I can convert it myself.