my @all = $string =~ /[^_]+/g; #### my $result = "@all";