Help for this page

Select Code to Download


  1. or download this
    my $re = qr{(\w+)(\s*\d+\s*)*};
    How do I get every match matched by the second group?
    
  2. or download this
    my $re = qr{(\w+)(\s*\d+\s*)*};
    
    ...
    # output:
    # a 1 2 3 : a 3 
    # b 4 5 6: b 6