Reputation: 194
I have a long list of dictionary words in notepad++ and I am looking to shorten the list by deleting all words above six character. Is there any way I can do this. I have tried using multi-line editing but clearly this doesn't work because the word are too many.
Upvotes: 0
Views: 2772
Reputation: 91488
This one do the job:
^.{6,}\R
EMPTY
Explanation:
^ : begining of line
.{6,} : 6 or more any character
\R : any kind of linebreak
Upvotes: 2
Reputation: 4380
Use the replace window using:
All lines more than 6 characters will be emptied
Then you can delete empty lines:
\n\n
\n
Upvotes: 2
Reputation: 385
You can use ctrl-h and tick regular expressions. Try finding: ^[A-Z|a-z]{6,}$ and replace with blank
Upvotes: 1