Help for this page

Select Code to Download


  1. or download this
             $re{"$first$last"}||="(?{$acct})$first\\s*$last|(?{$acct})$la
    +st,?\\s+$first";
    
             $first=substr($origfirst,0,1);
             $re2{"$first$last"}||="(?{$acct})\\b$last,?\\s+$first" 
                unless exists $hExclude->{lc $origlast} or length($last)<4
    +;
    
  2. or download this
             push @re, "$first\\s*$last(?{$acct})",
                       "$last,?\\s+$first(?{$acct})"
    ...
                if !exists($hExclude->{lc $origlast})
                && length($last)>=4;
                && !$re2{"$first$last"}++
    
  3. or download this
          $re=join('|',sort ocr_sort values %re);
          $re2=join('|',sort ocr_sort values %re2);
    
  4. or download this
          # 5.10.0 and higher
          $re  = join('|', sort ocr_sort @re);
          $re2 = join('|', sort ocr_sort @re2);
    
  5. or download this
          # Any version of Perl
          $re = do {
    ...
             $ra->add($_) for sort ocr_sort @re2;
             $ra->re
          };