in reply to Re: Regex output incorrect
in thread Regex output incorrect
Hi GrandFather,
I had a typo which I corrected actually no slash is at the end of folder_path. Correct code is below, still producing incorrect output
my $folder_path = "/aboutiso/corp_gov/bod/agendas/2010"; my $try = "index.html"; my $test = "$folder_path/$try"; $folder_path =~ s#/\w+/[^/]*.\w+$##; print "folderpath: $folder_path\n";
|
|---|