use strict; use warnings; my $folder_path = "/aboutiso/corp_gov/bod/agendas/2010"; $folder_path =~ s#/\w+/[^/]*.\w+$##; print "folderpath: $folder_path\n";[/
gives me incorrect output: /aboutiso/corp_gov
I'm trying to print /aboutiso/corp_gov/bod/agendas
In reply to Regex output incorrect by begood321
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |