Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    push @fields, $& while $string =~ /\b([A-Z])\*.*?\*\1\b/g;
    
    print Dumper \@fields;
    
  2. or download this
    $VAR1 = [
              'C*ID1*Mac*C',
    ...
              'D*ID1*Spore 1*D',
              'D*ID2*Spore 2 game*D'
            ];