in reply to Re: Regex output incorrect
in thread Regex output incorrect

Hi Wagner, you're right

Here is correct code, I just need to get correct output.

my $folder_path = "/aboutiso/corp_gov/bod/agendas/2010"; $folder_path =~ s#/\w+/[^/]*.\w+$##; print "folderpath: $folder_path\n";