Sub Button1_Click
Dim SepChar As String="\|"
Dim myString As String=".1.|Hello world |00000" & CRLF & ".2.|Hi guys |00001"
Dim arrS As List=Regex.Split(CRLF,myString)
LogColor(myString,Colors.Yellow)
For i=0 To arrS.Size-1
Dim arrL As List=Regex.Split(SepChar,arrS.Get(i))
arrL.set(1,"bye bye world")
arrS.Set(i,Join(arrL,SepChar))
Next
myString=Join(arrS,CRLF)
LogColor(myString,Colors.Cyan)
End Sub
Public Sub Join(lst As List, joinChar As Object) As String
Dim retStr As StringBuilder
retStr.Initialize
For Each str In lst
retStr.Append(str).Append(joinChar)
Next
Return retStr.ToString
End Sub