Removal of Blank Lines
Posted: Tue Apr 28, 2015 9:35 pm
Hi,
Here is the problem.
I thought I had successfully formatted multiple files, and they show up as required when opened in notepad and textcrawler.
But, when opened in wordpad there are some blank lines that should not be there.
The following was copied from a txt doc and did not show the blank lines until pasted into this message !
This is machine tool programming code and I have several thousand files to modify.
%
O5041
(MSO2 036)
(FAST)
(FEEDRATE 250)
G82P1500Q500R100F250.0
G88P18M56
G87P0
M32
M22
G181R35
M99
%
How do I remove these blank lines ? I have tried the regular expression ^\r\n and replace with nothing, but this does not find anything to replace.
Thanks
Michael.
Here is the problem.
I thought I had successfully formatted multiple files, and they show up as required when opened in notepad and textcrawler.
But, when opened in wordpad there are some blank lines that should not be there.
The following was copied from a txt doc and did not show the blank lines until pasted into this message !
This is machine tool programming code and I have several thousand files to modify.
%
O5041
(MSO2 036)
(FAST)
(FEEDRATE 250)
G82P1500Q500R100F250.0
G88P18M56
G87P0
M32
M22
G181R35
M99
%
How do I remove these blank lines ? I have tried the regular expression ^\r\n and replace with nothing, but this does not find anything to replace.
Thanks
Michael.