Fixes exception regex for invalid IP.