Page 1 of 1

One more here asking: Delete Blank Lines??

Posted: Mon Apr 06, 2020 12:52 pm
by nkormanik
I think I've tried just about every RegEx combination I could find out there. No luck.

Given: Text file with some blank lines thrown in.
Objective: Remove those blank lines.

Of course, using TextCrawler.

Can TextCrawler do it??

Closest I think I came:
Search: ^$\n?
Replace with: nothing

If not, no problem. I'll find an alternative way.

But, I'm hoping TextCrawler is capable of removing blank lines.....

Thanks,
Nicholas Kormanik

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

Posted: Tue Apr 07, 2020 10:05 am
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.

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

Posted: Tue Apr 07, 2020 12:00 pm
by nkormanik
Bummer. "No matches found...."

Any other ideas?