in reply to RE: RE: Matching an IP address
in thread Matching an IP address

No, because "-" is not a digit and the regex only matches digits. When I first typed the code in, I also checked for -1<$_, but later I realized that wasn't needed. Here is another try:

1111==join"",map{/^\d+$/&&$_<256&&!/^0\d/?1:2}split/[.]/

Update: I played about 8 rounds of golf on this before posting and managed to drop ,$_,-1, so the above doesn't reject trailing dots.