Notepad ++:如何删除以字符串+前一行开头的每一行

时间:2019-08-11 10:39:41

标签: notepad++

我想要Notepad ++中的代码,该代码删除以特定字符串开头的每一行以及前一行

EG:删除每行

开头
  

http://atlantisiptv.com:8080/lisa/lisa1

以及上一个

发件人:

#EXTINF:-1,AS* | Max HD2
http://atlantisiptv.com:8080/lisa/lisa1/116204
#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125554
#EXTINF:-1,AS*Max HD1
http://atlantisiptv.com:8080/lisa/lisa1/116203
#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125553
#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125552
#EXTINF:-1,AS*HD3
http://atlantisiptv.com:8080/lisa/lisa1/116565
#EXTINF:-1,AS*HD
http://atlantisiptv.com:8080/lisa/lisa1/104915
#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125551
#EXTINF:-1,AS*HD4
http://atlantisiptv.com:8080/lisa/lisa1/116564

收件人:

#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125554
#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125553
#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125552
#EXTINF:-1,H265
http://jokeriptv.online:1453/ferhat2/27022019/125551

预先感谢

1 个答案:

答案 0 :(得分:0)

使用搜索和替换将.*\r\nhttp://atlantisiptv\.com:8080/lisa/lisa1.*(\r\n)?替换为空。打开正则表达式模式并关闭. matches new line

如果您不使用Windows,则将\r\n更改为\n