How to remove a specific range of row regardless of blank/empty lines using regex?
-
Hi there,
How to remove a specific range of rows, for example, need to remove lines 2-5 regardless of blank/empty lines or lines containing info. Many thanksBefore
- 1a@3536
- 123abc@
- abc!153
- #@!af35
- ff@#123
- wt3ef@1
- 3*^tu12
After
- 1a@3536
- ff@#123
- wt3ef@1
- 3*^tu12
-
@lightning-speed Find:
(?-s)\A(.*\R){1}\K(.*\R){4}
Replace: empty field -
@Paul-Wormer
It’s works perfectly. Many Thanks