Captain Walker

Cleaning up excess paragraph breaks

technology, tip, time, efficiency, software, microsoft, ms word, saving, code

Not everybody needs this! I often have text copied from PDF when I’m working on something. This leads to loads of unnecessary paragraph marks. At other times I have rows of plain text copied from somewhere. It’s a pain to get rid of paragraph marks at the end of each line, yet preserving the correct paragraph breaks. The solution is below.

If it was line breaks (instead of paragraph breaks, this is the code to use in Notepad++ (below) – same methodology.

([^ \t\r\n¬])¬([^ \t\r\n¬])

Please accept YouTube cookies to play this video. By accepting you will be accessing content from YouTube, a service provided by an external third party.

YouTube privacy policy

If you accept this notice, your choice will be saved and the page will refresh.