Purifying HOSTS lists

Posted at

identifying non domain names
^.*[^a-z0-9\\.\\-]+.*$

^.*[^a-z0-9\\.\\-\\ \\_]+.*$


IPs are not permitted in HOSTS file
^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$