Guest User

Untitled

a guest
Oct 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.33 KB | None | 0 0
  1. @alphabet = split('', '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ');
  2.  
  3. # loop through 2 character combos
  4. foreach (@alphabet) {
  5.     $c1 = $_;
  6.  
  7.     foreach (@alphabet) {
  8.         $c2 = $_;
  9.         $lookfor = '\b'.$c1.$c2.'[ ,](([A-Z]{1})([ a-z])+)+,';
  10.  
  11.         if ($fcontents =~ m/($lookfor)/) {
  12.             print "$1\n";
  13.         }
  14.     }
  15. }
Add Comment
Please, Sign In to add comment