[Help]parse a word
How do i call it.
For example the line is: MPGH is the best site eva.
How do i parse the line if i wanted only the word "best".
For example the line is: MPGH is the best site eva.
How do i parse the line if i wanted only the word "best".
Code:
Function Parse(ByVal Data As String, ByVal Left As String, ByVal Right As String) As String
If Data.Contains(Left) AndAlso Data.Contains(Right) Then
Return Data.Substring(Data.IndexOf(Left) + Left.Length, Data.IndexOf(Right) - Data.IndexOf(Left) - Left.Length)
Else
Return String.Empty
End If
End Function