replace IP addresses with the regex