我已经txt文件contaning每行一个网址每个URL为:txt文件删除URL到最后一个“/”来获得文件
://url/files.php?file=parent/children/file.pdf
://url/files.php?file=parent/children2/childrenofchildren2/file2.txt
......etc
我需要帮助一排前的最后/
削减everythink。这就是我在记事本++正则表达式模式中使用(它不工作):
^.+[/](.*)$
要获取:
file.pdf
file2.txt
但我向所有人开放waysof解决。
用四个空格前缀代码/数据。请看[编辑帮助](http://stackoverflow.com/editing-help)。 – Cyrus
在NPP中,您可以使用'^。* /'替换为'/'(如果您需要保留最后一个'/')。 –
没有'^。* /'忽略行尾我试过这个之前它会选择除最后一行结尾之外的所有内容。 – Aroly7