Quantcast
Channel: OpenPlant | AutoPLANT Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4153

Parser Regular Expression

$
0
0

 I have a tag in Data Manager that has a tag that is something like this 1440-AC-999D07 where:

Area = 1440

Equipment Code/Device Code = AC

Number = 999

Suffx = D07

 

I have tried multiple variations of Parser Expressions and when I browse for the tag from Data Manager the number part of the suffix gets truncated.

^(?<PLANT_AREA>[?\w]*)-(?<DEVICE_TYPE_CODE>[?\w]*)-(?<NUMBER>[\d{3}])(?<SUFFIX>.*)
^(?<PLANT_AREA>[?\w]*)-(?<DEVICE_TYPE_CODE>[?\w]*)-(?<NUMBER>[\d][\d][\d])(?<SUFFIX>[?\w]*)

^(?<PLANT_AREA>[?\w]*)-(?<DEVICE_TYPE_CODE>[?\w]*)-(?<NUMBER>[\d][\d][\d])(?<SUFFIX>[A-Z0-9]*)

^(?<PLANT_AREA>[?\w]*)-(?<DEVICE_TYPE_CODE>[?\w]*)-(?<NUMBER>[\d][\d][\d])(?<SUFFIX>[?\S]*)

What should the proper parser expression be where OPPID will not cut out the number portion of the suffix?

Thanks,

Justin


Viewing all articles
Browse latest Browse all 4153

Trending Articles