Value IP (\S+)
Value MASK (\d+)
Value COMMENT (.*?)
Value DISABLED (yes|no)
Value INTERFACE (\S+)
Value NETWORK (\S+)

Start
  ^\s*#.*$$
  ^/ip\s+address\s*$$
  ^\s*add\s+address=${IP}/${MASK}(?:\s+comment="${COMMENT}")?\s+disabled=${DISABLED}\s+interface=${INTERFACE}\s+network=${NETWORK}\s*$$ -> Record
  ^\s*$$
  ^. -> Error
