Value MAC ([0-9a-fA-F]{6}-[0-9a-fA-F]{6}) Value PORT (\S+) Value VLAN (\d+) Start ^\s*--- -> Start_record Start_record ^\s+${MAC}\s+${PORT}\s+${VLAN} -> Record ^\s+${MAC}\s+${PORT} -> Record ^\s*$$ ^. -> Error