text1/text2/text3
In this text, I am trying to get text3 only. Is there anyway that I can do this in VB.Net?
By the way, "text1/text2/" is fixed. So they are not changing.
use substring since you know the index position of the character.The code below is usefull for you if the "text1 and text2" varies dynamically
Dim line as string="text1/text2/text3"
Dim _split = line.Split("/")(2)
MessageBox.Show(_split)
you can use SubString like
string sub = "text1/text2/text3".Substring(12, 5);
VB
Dim subString As String = "text1/text2/text3".Substring(12, 5)
or you can refer to this Find text in string with C#