Sublime Forum

Regex: Skip first 5 lines,select next 5 (including blak ones) and repet pattern till end of document

#1

Help. Don’t have experience with this kind of pattern. I have docs where from beginning first 5 lines must be skipped from deletion, delete next five and repet till end of doc.

0 Likes

#2

Using a find-and-replace regex ((.*\n){5})(.*\n){5} and in the replace field having \1 and replacing all should do what you want.

0 Likes