Dim Result As List
Result.Initialize
Dim Test As String = "nif((OPCclient1.'2500-2'.'192-168-1-120-502-ID002-2584'.IO.Module12.M12_C1.Val)or (\\.\EEMethan_Display\sw_Override_value),1,0),OPCclient1.'2500-2'.'192-168-1-120-502-ID002-2584'.IO.Module12.M12_C1.Val>0, green, \\.\EEMethan_Display\sw_Override_value>0, orange, ,blue, , blue, , blue, red"
Dim Str() As String = Regex.Split(",O",Test)
Result.Add(Str(0))
For Each S As String In Regex.Split(",",Str(1))
If S.StartsWith("PCclient") Then
Result.Add("O" & S)
Else
Result.Add(S)
End If
Next
For Each S As String In Result
Log(S)
Next