Here is a typical example of data I need to parse:
From this I need to get an array containing:
I tried using regex.split on the comma but did not see the commas in the first item. Can anyone help?
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
From this I need to get an array containing:
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
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
I tried using regex.split on the comma but did not see the commas in the first item. Can anyone help?