Use a regexp to test the IP