I have a richtextbox filled with some text (e.g. [mplampla], [randomstring], [string]...). The richtextbox has many lines. I'm trying to get every value between "[" and "]" but I can't.
That's my code so far:
For Each line In RichTextBox1.Lines
Dim string1 As String = line
Dim finalstring As String = ""
finalstring = string1.Split("[")(1).Split("]")(0)
MsgBox(finalstring)
Next