Added regex specific to ipv4 addresses back in code