Help for this page

Select Code to Download


  1. or download this
    my $octet = qr/\d{1,2}|[01]\d{2}|2[0-4]\d|25[0-5]/;
    
  2. or download this
    my $ip = qr/^$octet\.$octet\.$octet\.$octet$/;
    
  3. or download this
    my $ip = qr/^(?:$octet\.){3}$octet$/;