【发布时间】:2016-09-13 01:16:20
【问题描述】:
我正在使用 perl,但在删除其他文件夹名称以保留最后两个文件夹名称时遇到了一些问题。
Trainings and Events
General Office\Archive
General Office\Office Opperations\Contacts
General Office\Office Opperations\Office Procedures\How Tos
public_html\Accordion\.svn\tmp\text-base
我想删除文件夹路径名,这样文件夹最终会像这样,每个文件夹都有最后两个路径名:
Trainings and Events
General Office\Archive
Office Opperations\Contacts
Office Procedures\How Tos
tmp\text-base
Office Opperations\Contacts
我已经阅读了其他一些显示最后两个文件夹名称的stackoverflow,但我无法反转表达式。 (如果能找到我会链接)
我目前正在使用 sublime text 3 来测试我的表达方式。
谢谢
【问题讨论】:
标签: regex perl directory sublimetext3 filepath