Improved grep regex that identifies IPs