Remove carriage returns in column 81

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
Michael Cook

Remove carriage returns in column 81

Post by Michael Cook »

I am copying data from a terminal which will wrap long (more than 80 characters) lines. When I copy and paste there are carriage returns at each line wrap.

How can I remove carriage returns if and only if they are in the 81 column?

Thanks.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Using POSIX regular expression:
find (.{80})\n
replace \1

To use POSIX goto Configure->Preferences->Editor
and tick the "Use POSIX regular expression syntax" box.
In the replace dialog tick the "Regular expression" box.

HTH
Then I open up and see
the person fumbling here is me
a different way to be
Michael Cook

Post by Michael Cook »

Thank you.
It worked very fast. Much faster than a ms Word script I have been using.
:D
Post Reply