Key1 Key2 Key3Solutions: use Tools “Editplus” function search/replace with option “Regular Expressions”
http://sub1.domain.com/
Key4 Key5 Key6
http://sub2.domain.com/
1. open file in “Editplus”
2. Menu > Search > Replace (Ctrl + h)
3. Find what: ^K[^]+n
4. Replace: blank (or more)
4. checkbox Regular expressions
5. click Replace All
Result :
http://sub1.domain.com/Trick: if do you want delete url, step 3. use ^http://[^/]+/
http://sub2.domain.com/
Ref: http://editplus.info/wiki/Regular_expression_syntax
ps: .com[^]+
Regex to negate the whole word
^(?:(?!reflexword).)+$https://stackoverflow.com/questions/23724661/