Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings FATAL => 'all';
    ...
        printf "Group %d: <%s>\n", $_, substr($string, $-[$_], $+[$_] - $-
    +[$_]);
      }
    }
    
  2. or download this
    Group 0: <aacbbbcac>
    Group 1: <ac>
    Group 2: <a>
    Group 3: <bbb>
    Group 4: <c>