Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    $ins1 =~ /[\d+-]+(?: \w ([\d+-]+)(?{push @inserts, $1}))*/g;
    print "\n" . join ' ', @inserts;
    }
    
  2. or download this
    -4 -4 1