Hello, I have a url of a file as a string, if the url were "h++p://www.vbdotnetforums.com/newthread.php" how would I just get the "newthread.php"?
I have this:
But that only does it for the first "/" in the string.
Any way to make it do work for the last "/" in the string?
I have this:
VB.NET:
Dim str As String
str = TextBoxURL.Text
str = str.Substring(str.IndexOf("/"), str.Length - str.IndexOf("/"))
But that only does it for the first "/" in the string.
Any way to make it do work for the last "/" in the string?
Thanks