String within a string

jpnoob

Member
Joined
Jun 4, 2009
Messages
8
Programming Experience
1-3
I have the following string http://www.domain.com/this/that/and/the/other and want to extract this/that/and/the/other from it. This part of the string will be dynamic so it could be just this/that or longer. Ultimately i'd like to look for http://www.domain.com/ in the string and grab everything else right of it no matter how long the additional length of the string is.

Hope that makes sense!

Thanks in advance!
 
VB.NET:
Imports System.Uri

Public Class Form1

	Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

		Dim url As String = "http://www.domain.com/this/that/and/the/other?v=101"
		Dim builder As New UriBuilder(url)
		Dim pathAndQuery As String = builder.Path & builder.Query


	End Sub
End Class
 
Back
Top