my $content =~ m/(\/$string\/a-z*)/g; #### my @content = $_ =~ m/(\/$string\/a-z*)/g;