A
A
Alexander Markov2020-01-31 13:32:28
Notepad++
Alexander Markov, 2020-01-31 13:32:28

How to select all the necessary lines in Notepad ++ and change even with odd?

How to select all the necessary lines in Notepad++ and move them up 1 line. Select all lines starting with: #DESCRIPTION There is a source file:

#EXTM3U
http://strm.yandex.ru/kal/1hd/1hd0_169_480p.json/index-v1-a1.m3u8:1HD
#DESCRIPTION 1HD
http://rtmp.one.by:1300:1 муз HD
#DESCRIPTION 1 муз HD
http://rtmp.one.by:2300:Первый Музыкальный RU BY HD
#DESCRIPTION Первый Музыкальный RU BY HD
http://live.stranafm.cdnvideo.ru/stranafm/stranafm_hd.sdp/playlist.m3u8:Страна FM TV
#DESCRIPTION Страна FM TV
http://rtmp.one.by:1300:One.by HD
#DESCRIPTION One.by HD
http://stream.mediawork.cz/retrotv//retrotvHQ1/playlist.m3u8:Retro Music TV
#DESCRIPTION Retro Music TV

All marked lines starting with: #DESCRIPTION Should be shifted 1 line up.
That is, swap adjacent rows. The
result should be like this:
#EXTM3U
#DESCRIPTION 1HD
http://strm.yandex.ru/kal/1hd/1hd0_169_480p.json/index-v1-a1.m3u8:1HD
#DESCRIPTION 1 муз HD
http://rtmp.one.by:1300:1 муз HD
#DESCRIPTION Первый Музыкальный RU BY HD
http://rtmp.one.by:2300:Первый Музыкальный RU BY HD
#DESCRIPTION Страна FM TV
http://live.stranafm.cdnvideo.ru/stranafm/stranafm_hd.sdp/playlist.m3u8:Страна FM TV
#DESCRIPTION One.by HD
http://rtmp.one.by:1300:One.by HD
#DESCRIPTION Retro Music TV
http://stream.mediawork.cz/retrotv//retrotvHQ1/playlist.m3u8:Retro Music TV

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-01-31
@dodo512

Find: (?m-s)^(.*)(\R)(#DESCRIPTION.*)
Replace:$3$2$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question