try using regex:
vb Code:
Dim string_1 As String = "sometextblahblahdoodledooo<text>this is what i want</text>blahblahsomeothertext" Dim rx As New Regex("(?<=<text>).+?(?=</text>)") Dim string_2 As String = rx.Match(string_1).Value
don't forget to import regex:
vb Code:
imports system.text.regularexpressions




Reply With Quote
