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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login