Hamed Ap Hamed Ap - 5 months ago 16
Vb.net Question

remove before specific word in vb.net

how to remove texts up to one word in textbox ?

Example :

Textbox.text = "http://google.com/text/word"


i want to have just WORD in that textbox .

Answer

relevant

Dim uri = New Uri("http://google.com/text/word")
Dim word = uri.Segments(uri.Segments.Length - 1)
Textbox.text = word
Comments