Remove "</div>" (and anything after it) from a string
vb.net
Solution
Although your question appears to be "incomplete", reading through the comments it appears that you want to remove the closing DIV tag along with whatever text appears after it.
If that's the case, then this code should do the work:
Dim txt As String = "Wanted text</div> arbitrary text"
Dim p As Integer = txt.ToLower().IndexOf("</div>")
If p <> -1 Then txt = txt.Substring(0, p)
Problem
I would like to remove the substring `"</div>"` from a larger string. Since this does not necessarily appear at the end, any text appearing after this token should be removed as well. Since `Split` and `Remove` only allow integers, how would I do this? For example, after making the changes `"Wanted text</div> arbitrary text"` becomes `"Wanted text"`