# your SNMP data must be in $_ my @d = /\bVALUE:(.*?)OID:/g;