byrnejeff
11-04-2007, 08:31 AM
Hello
I have something like this:
vv_TestMode : BOOL (Description := "Virtual Validation$NTest Mode Bit",
RADIX := Decimal) := 0;
InfotoCPL1_007Msg : MESSAGE (MessageType := CIP Data Table Write,
RemoteElement := "CPL1_001_Status",
RequestedLength := 1,
ConnectedFlag := 1,
ConnectionPath := "Enet02, 2, xxx.xx.xx.xx, 1, 0",
CommTypeCode := 0,
LocalIndex := 0,
LocalElement := "InfotoCPL1_007",
CacheConnections := "TRUE");
New_MSG : MESSAGE (MessageType := Unconfigured,
I want to get the word InfotoCPL1_007Msg, which is no problem, however I am having trouble getting what's between the 2 ( ), which spans multiple line. I can easily get the "MessageType := CIP Data Table Write" from the first line, but when I try to expand the match to get everything between ( ), it doesn't match.
Any suggestions?
I have something like this:
vv_TestMode : BOOL (Description := "Virtual Validation$NTest Mode Bit",
RADIX := Decimal) := 0;
InfotoCPL1_007Msg : MESSAGE (MessageType := CIP Data Table Write,
RemoteElement := "CPL1_001_Status",
RequestedLength := 1,
ConnectedFlag := 1,
ConnectionPath := "Enet02, 2, xxx.xx.xx.xx, 1, 0",
CommTypeCode := 0,
LocalIndex := 0,
LocalElement := "InfotoCPL1_007",
CacheConnections := "TRUE");
New_MSG : MESSAGE (MessageType := Unconfigured,
I want to get the word InfotoCPL1_007Msg, which is no problem, however I am having trouble getting what's between the 2 ( ), which spans multiple line. I can easily get the "MessageType := CIP Data Table Write" from the first line, but when I try to expand the match to get everything between ( ), it doesn't match.
Any suggestions?