improved ip address regex match in ping