M
M
mipfikus2021-08-22 21:05:37
Notepad++
mipfikus, 2021-08-22 21:05:37

How to remove both duplicate lines in a file?

There is a file with text, for example:

1
1
2


After processing, only a deuce should remain. The solution is desirable in notepad ++, but not essential. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-08-22
@mipfikus

Search pattern (?-s)^(.+)(\R\1)+$
Leave the replacement string empty.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question