notepad++ - Regex - remove similar strings -


i have these lines

http://dawn-ofthe-dead.blogspot.com/2008/02/amenra-hitch.html http://dawn-ofthe-dead.blogspot.com/2008/0...enra-hitch.html https://yadi.sk/mail/?hash=r041opeqcstt3kmodt3qxciamcxox1p78e1pqdoqjr8%3d https://yadi.sk/mail/?hash=r041opeqcstt3kmo...78e1pqdoqjr8%3d https://mail.yandex.ru/message_part/2011%20-%20amenra%20%26%20oathbreaker%20(split).rar?name=2011%20-%20amenra%20%26%20oathbreaker%20(split).rar&hid=1.3&ids=2440000004701735584 https://mail.yandex.ru/message_part/2011%20..000004701735584 http://mediaboom.org/mp3/127749-amenra-mass-i-prayer-i-vi-2003.html http://mediaboom.org/mp3/127749-amenra-mas....-i-vi-2003.html 

i want remove strings with

.. ... .... 

because similar duplicate strings.

i want output

http://dawn-ofthe-dead.blogspot.com/2008/02/amenra-hitch.html https://yadi.sk/mail/?hash=r041opeqcstt3kmodt3qxciamcxox1p78e1pqdoqjr8%3d https://mail.yandex.ru/message_part/2011%20-%20amenra%20%26%20oathbreaker%20(split).rar?name=2011%20-%20amenra%20%26%20oathbreaker%20(split).rar&hid=1.3&ids=2440000004701735584 http://mediaboom.org/mp3/127749-amenra-mass-i-prayer-i-vi-2003.html 

how regex? (i'm using notepad++)

under condition, line want remove follows line without dots, can use following (make sure regular expression checked in notepad++ replace dialog):

search pattern: ^(.{25,})(.*)$\r\1.*

replace pattern: $1$2

this checking 25 characters in 1 line, repeated in next line - , removes second line. of course can replace 25 whatever number feel appropriate avoid false positives.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -