Help for this page

Select Code to Download


  1. or download this
    sub regex2 { my $pat = shift ;
         eval q%sub {
    ...
               }
                  }%; 
    }
    
  2. or download this
       my $foobar = regex2 '\bfoo\W+(?:\w+\W+){0,6}bar\b' ;
    
  3. or download this
       my $ugly_and_evil = regex2 '\bteam(?!\W+(\w+\W+){0,5}management\b)'
    + ;
    
  4. or download this
       my $broken_and_wrong = regex2 '(?<!\bmanagement\W+(\w+\W+){0,5})tea
    +m' ;
    
  5. or download this
    my $inherently_evil = regex2 
          '(?<!management)
    ...
            team\b
            (?!\W+(\w+\W+){0,5}management)
                                 ';