Turn a multi line file into a single line file

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
agent86
Posts: 18
Joined: Wed Apr 26, 2006 2:59 am
Location: SF Bay Area

Turn a multi line file into a single line file

Post 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?
agent86
Posts: 18
Joined: Wed Apr 26, 2006 2:59 am
Location: SF Bay Area

I figured it out...

Post 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
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Re: I figured it out...

Post 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 ...
Post Reply