One more here asking: Delete Blank Lines??

RegEx problems forum (archived)
User avatar
DigitalVolcano
Site Admin
Posts: 1790
Joined: Thu Jun 09, 2011 10:04 am

Re: One more here asking: Delete Blank Lines??

Post by DigitalVolcano »

This should do it-

Code: Select all

^\s+$[\r\n]*
You do need to checkmark the 'Multi-line anchors' option though.
This will match lines with just spaces and tabs also.