Question String Parsing

jpnoob

Member
Joined
Jun 4, 2009
Messages
8
Programming Experience
1-3
I have the following string:

404%3bhttp%3a%2f%2flocalhost%2fapp%2fdir

I need to be able to parse it to grab the last directory from the path, which in this case is dir

Any help?

Thanks!
 
VB.NET:
Dim s As String = <UrlDecode>
Dim url As String = s.Split(";"c)(1)
s = IO.Path.GetFileName(url)
 

Latest posts

Back
Top