i have a script that generates the output with the fullpath of the directory.
i want the output asExample y:/home/lib/directory/book y:/home/lib/directory/book_manager y:/home/lib/directory/piano_book
is there any regex for this guys? i tried doing this but it still leaves the slash at the end $output =~ s{.*(/)}{$1};book book_manager piano book
In reply to how to remove everything before last slash in perl? by mipatel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |