Help for this page

Select Code to Download


  1. or download this
    my $ip4 = "([0-9]{1,3}\.){3}[0-9]{1,3}";
    
    my $ip6 = "([a-f0-9]{4}\:)+?";
    
    my $prefix = "/\d\d";
    
  2. or download this
    my $pattern = "^($ip4|$ip6)($prefix)?";
    
  3. or download this
    open (FILE, "<$some_file") or die "Error: $!\n";
    
    ...
        print "Hey, I found \$1: $1 \$2: $2 \$3: $3\n";
    }
    close FILE;
    
  4. or download this
    ^(([0-9]{1,3}\.){3}[0-9]{1,3}|([a-f0-9]{4}\:)+?)(/\d\d)?
    
  5. or download this
    "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"