|
Hi all
The code below writes only the ladst pattern on the txt file. Do you perhaps have any idea why?
Dim pattern As String = "<BOOKMARK[^>]*>" Dim m As Match = Regex.Match(TextBox1.Text, pattern)
saveFileDialog3.Filter = "Text files (*.txt) |*.txt" Dim EntireFile As String Dim oWrite As System.IO.StreamWriter oWrite = IO.File.CreateText("C:\tag_temp.txt")
While (m.Success) m = m.NextMatch() Dim bmStr As String = m.Value oWrite.Write(bmStr) oWrite.Close() End While |