Page 1 of 1

Turn a multi line file into a single line file

Posted: Wed Jul 16, 2014 2:37 pm
by agent86
I have a 2000+ line file that needs to be one line long. How can I remove all the CRLFs at the end of each line?

I figured it out...

Posted: Wed Jul 16, 2014 3:57 pm
by agent86
Based on the following post:

http://forums.textpad.com/viewtopic.php ... light=crlf

Configure | P references | Editor

[X] Use POSIX regular expression syntax

Find what: (.)\n(.)
Replace with: blank

[X] Regular expression

Replace All

Re: I figured it out...

Posted: Wed Jul 16, 2014 7:04 pm
by MudGuard
agent86 wrote: Find what: (.)\n(.)
Replace with: blank
Why do you want to remove the last character of each line, and the first character from all lines except the first?

I'd say
find \n+ and replace with blank.

agent86 wrote: Configure | P references | Editor

[X] Use POSIX regular expression syntax
current textpad versions do not have this options anymore, it is no longer necessary as the regex machine has been replaced by a newer one ...