1

i want to do this for many lines 100+ so manual way will be hard

Full example file containing:

user1:user1
user2:user2
user3:user3
user4:user4
user5:user5
user6:user6
user7:user7
user8:user8
user9:user9
user10:user10

example Needed result:

user1:user1

user3:user3
user4:user4

user6:user6
user7:user7

user9:user9
user10:user10

so line 2 and line 5 and line 7 is removed and this what i want because when i try it in notepad++ it won't found because they are in different lines

but i want to find or search for all lines together specially for big file like 1000+ lines

1 Answers1

0

You can use the Find and Replace Dialog with Search Mode set to Extended. To detect a new line, type\r\n as in this example:

Find: user1:user1\r\nuser2:user2\r\nuser3:user3\r\nuser4:user4\r\nuser5:user5 Replace with: \r\n\r\n\r\n\r\n\r\n

This will replace the text: user1:user1 user2:user2 user3:user3 user4:user4 user5:user5

with five blank lines.

If you need to be able to search for unspecified usernames, you will need to use RegEx for that. That is another Search Mode in Notepad++'s options. This may help with that (I do not know how to use RegEx): Using wildcard search/replace in Notepad++