reverse selected lines

General questions about using TextPad

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

Post Reply
Kevin

reverse selected lines

Post by Kevin »

I need to reverse the order of selected lines. Any suggestions?

Thanks.
Ed

Re: reverse selected lines

Post by Ed »

Replace all (reg exp)
^
with
\i\t

Sort (F9) First key From:1, Length:10, Descending, Numeric

Replace all (reg exp)
^[[:digit:]]+\t
with

(blank)

voila

could be made a macro I guess
OppfinnarJocke
Posts: 7
Joined: Wed Sep 03, 2008 9:34 am

Re: reverse selected lines

Post by OppfinnarJocke »

Ed wrote:Replace all (reg exp)
^
with
\i\t

Sort (F9) First key From:1, Length:10, Descending, Numeric

Replace all (reg exp)
^[[:digit:]]+\t
with

(blank)

voila

could be made a macro I guess
So frigging clever!
Thanks a lot, it really helped.
Post Reply