Extract mac address and ip from the result using regexp package