If you want to replace all the
<br>
with "", try Regex.Replace() method:
Imports System
Imports System.Text.RegularExpressions
Public Module Module1
Public Sub Main()
' original string
Dim input As String = "blah<br> blah<br>,,,"
Dim output As String = Regex.Replace(input, "<br>", "")
' print out
Console.WriteLine(input)
Console.WriteLine(output)
End Sub
End Module
++++[Round 2]+++++
If you meant to replace consecutive breaks like
blah<br><br>blah
with a single
<br>
then try this:
Dim input As String = "blah<br> blah<br><br>,,,"
Dim output As String = Regex.Replace(input, "(<br>){2,}", "<br>")
{2,} means 2 or more of the preceding pattern.