my @x; while ($str =~ m{(.*?)}g) { push @x, $1; }