Hi,
I am trying to search through a string for <html xxxxxxxx > and then if it is found, I want to delete it from the string.
Here is what I have so far, but it is not working.
If msgMessageToFinal.Contains("<html") Then
Dim iEndIndex As Integer = msgMessageToFinal.IndexOf(">")
Dim iStartIndex As Integer = msgMessageToFinal.IndexOf("<html")
If iStartIndex <> -1 AndAlso iEndIndex <> -1 Then
Dim iLength As Integer = iEndIndex - iStartIndex
Dim sTag As String = msgMessageToFinal.Substring(msgMessageToFinal.IndexOf("<html"), iLength)
sTag.Remove(iStartIndex)
End If
End If
Thanks.
...
Go to the complete details ...