Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @string_three_results = $string_three =~ / (?| (\d+) (a|b) | (a|b) 
    +(\d+) ) /gx;
    
    print 'RESULTS: ', Dumper(\@string_three_results), $/;
    
  2. or download this
    16:38 >perl 2020_SoPW.pl
    RESULTS: $VAR1 = ['21','a','b','23'];
    
    16:38 >