You could use RegEx, there's an easy example for that.
@ @mircatoCode:'RegEx Import Imports System.Text.RegularExpressions Dim VarString As String = "(?<=|-->)(.*?)(?=<--|)" ' Replace "|-->" and "<--|" with whatever the tags surrounding the word you extract. Dim VarStringMatch As MatchCollection = Regex.Matches(Textbox1.text, VarString) 'Find the word surrounded by the tags you provided and extract MessageBox.Interact(VarStringMatch(0).ToString) 'Show the text