RegEx: Replace repeating lines by single lines
Posted: Wed Dec 11, 2002 1:44 pm
I know, this is perhaps not the right place, but I guess there are some experts around ...
Given is a wordlist like the following:
--------------------
Imblemendierung
Inderned
Inderned
Inderned
Inderned
Indernedaufdridd
Indernedaufdridd
Indernedrechd
Indernedseidn
Informadion
Informadionssausdausch
--------------------
Which RegEx is able to replace repeating lines by a single line?
The result for the above should look like this:
--------------------
Imblemendierung
Inderned
Indernedaufdridd
Indernedrechd
Indernedseidn
Informadion
Informadionssausdausch
--------------------
Given is a wordlist like the following:
--------------------
Imblemendierung
Inderned
Inderned
Inderned
Inderned
Indernedaufdridd
Indernedaufdridd
Indernedrechd
Indernedseidn
Informadion
Informadionssausdausch
--------------------
Which RegEx is able to replace repeating lines by a single line?
The result for the above should look like this:
--------------------
Imblemendierung
Inderned
Indernedaufdridd
Indernedrechd
Indernedseidn
Informadion
Informadionssausdausch
--------------------