Help for this page

Select Code to Download


  1. or download this
    $dom = qr{
              [a-z]       # starts with a letter
              [a-z0-9-]*  # zero or more letters, numbers, hyphens
             }xi;
    
  2. or download this
    $au = qr{ $dom \.   # company
              $dom \.   # subdomain
    ...
              \. ?      # optional trailing dot
              \b        # word break
             }xi;
    
  3. or download this
    $com = qr{ $dom \.  # company
               com      # gTLD
               \. ?     # optional trailing dot
               \b       # word break
             }xi;
    
  4. or download this
    my $domain = qr{ (?:        # start of group
                       $dom \.  # company subdomain
    ...
                       $au      # .au pattern
                     )          # end of group
                   }xi;
    
  5. or download this
    use strict;
    use warnings;
    ...
            fail( $test_name );
        }
    }