[core] Fix internal IPv4 detection regex (related to #37)

These commits fix the regex used against IPs in order to detect internal ones according to the rfc1918.