我想要Notepad ++中的代码,该代码删除以特定字符串开头的每一行以及前一行
EG:删除每行以
开头以及上一个行
#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
预先感谢
答案 0 :(得分:0)
使用搜索和替换将.*\r\nhttp://atlantisiptv\.com:8080/lisa/lisa1.*(\r\n)?
替换为空。打开正则表达式模式并关闭. matches new line
如果您不使用Windows,则将\r\n
更改为\n