Help for this page

Select Code to Download


  1. or download this
    my $string = "abcdefghi";
    my @fields = split /(?=.{3})/, $string;
    
  2. or download this
    my @fields = split /(?(?{pos() % 3})(?!))/, $string;