It looks like this will pass for IP addresses with at least 2 digits in the octet, "192.168.0.1" will be False but "192.168.123.12" will be True.