Moving a line up in a macro

General questions about using TextPad

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

Post Reply
Samuel

Moving a line up in a macro

Post by Samuel »

Here is an example of what I am trying to fix

025877 260.00 113 Bryant, Dr. Roger 11164 169937 05/04 260.00

PRE PAYMENT

025878 45.00 113 Bryant, Dr. Roger 11164 169940 05/04 45.00

PRE PAYMENT

025879 45.00 113 Bryant, Dr. Roger 11164 169939 05/04 45.00

PRE PAYMENT

025880 45.00 113 Bryant, Dr. Roger 11164 169938 05/04 45.00

PRE PAYMENT
......................................................
I can make a macro to move the word PRE PAYMENT to the beginning of the line but is there a macro to make it move up so that its at the end of the line above?

025877 260.00 ..... ....... PRE PAYMENT

025878 45.00 ..... ........... PRE PAYMENT

I hope you understand this. If not I can send an attachment....

Thanks
Andreas

Re: Moving a line up in a macro

Post by Andreas »

replace
\nPRE PAYMENT
by
PRE PAYMENT
with reg ex activated
Roy Beatty

Re: Moving a line up in a macro

Post by Roy Beatty »

Or perhaps two \n's ?

Find:::: \n\nPRE PAYMENT<br>
Replace: PRE PAYMENT
Post Reply