Page 1 of 1
need to delete 50 linefeeds in a row..
Posted: Thu Apr 30, 2015 1:22 am
by amster
I have text output... and then its separated by 50 line feeds or carriage returns.... (not sure which or if there is a difference!) and then there's more text... and then 50 line feeds again.....
Please can someone help me accomplish this?
Thanks in advance.
Re: need to delete 50 linefeeds in a row..
Posted: Thu Apr 30, 2015 11:33 am
by DigitalVolcano
There's a Regular Expression in the TextCrawler library called 'Find/Strip Whitespace' - this may do the job (back up first though)!
Re: need to delete 50 linefeeds in a row..
Posted: Thu Apr 30, 2015 3:25 pm
by amster
Hi there. Thanks for the response. Yes I have seen that feature.
But I do not want to get rid of the rest of the whitespace... I want to just find the sections where I have big breaks of like 20, 30, 40, 50 lines of linefeed.
Please help!
Re: need to delete 50 linefeeds in a row..
Posted: Thu Apr 30, 2015 4:33 pm
by DigitalVolcano
Try this:
RegEx
Replace:
The 20 is the minimum number of blank lines (-1) before it is removed. This assumes CRLF line endings - you may have to change it to just \n for LF endings.
Re: need to delete 50 linefeeds in a row..
Posted: Tue Jun 16, 2015 6:21 pm
by amster
Thanks