Wenn man es nicht mit RegEx machen möchte, so würde ich es in deinem fall folgendermaßen machen...
Wenn der Text jetzt z.b in einer Richtextbox steht:
VB.Net
Code:
Dim neuerstring As String = ""
For Each line In richtextbox1.lines
neuerstring &= line.Replace("[" & (Split(Split(line, "[")(1), ":")(0)) & ":", Nothing) & vbNewLine
Next
MsgBox(neuerstring)
Translated to C#
Code:
string neuerstring = "";
foreach (object line_loopVariable in richtextbox1.lines) {
line = line_loopVariable;
neuerstring += line.Replace("[" + (Strings.Split(Strings.Split(line, "[")[1], ":")[0]) + ":", null) + Constants.vbNewLine;
}
Interaction.MsgBox(neuerstring);
EDIT:// Ich habe vergessen, dass du nach jedem replacen(Einfügen in die Variable eine neue zeile manuell eintragen musst, sonst kommt da nur zusammengequetchter müll raus)