← GalleryLogix Designer tag operand✨ Emoji Combos@^(?<tag>(?:[a-zA-Z]\w*|_\w+))(?<memspec>(?:(?:(?:\s*\.(?:[a-zA-Z]\w*|_\w+)|(?:\s*\[(?:[^,\]]+)(?:,(?:[^,\]]+))*\]))*)(?:(?:\s*\.\d+|\.\s*(?:\s*\[(?:[^,\]]+)\]))?)))?(?<metadataspec>(?:\s*\.\@(?<metadataid>(?:[a-zA-Z]\w*|_\w+))(?<metadatamemspec>(?:(?:(?:\s*\.(?:[a-zA-Z]\w*|_\w+)|(?:\s*\[(?:[^,\]]+)(?:,(?:[^,\]]+))*\]))*)(?:(?:\s*\.\d+|\.\s*(?:\s*\[(?:[^,\]]+)\]))?)))?))?$@gmPCRE+210 years ago✓ Pre-loaded
About this regex
Matches Rockwell Automation / Allen-Bradley Logix Designer tag operands, extracting the base tag name, memory specifications (array indices, struct members, bits), and metadata specs. It is ideal for parsing PLC tag references in ladder logic or structured text. This regex handles optional spaces within the tag structure.