Or even
code:
$subnet=trim(split(@IPADDRESS,'.')[2])

_________________________
There are two types of vessels, submarines and targets.