Terminate end os lines...

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
buzzt
Posts: 2
Joined: Tue Nov 11, 2003 11:24 pm

Terminate end os lines...

Post by buzzt »

How would I have Textpad automatically add a semi-colon at the end of each line? Is there a tool or Macro already out there?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Using POSIX Regular Expression:
Find: \n
Replace: ;\n
Hit "Replace All" HTH

Edit: If you want to go without newline:
Find (.)$
Replace \1;
Then I open up and see
the person fumbling here is me
a different way to be
buzzt
Posts: 2
Joined: Tue Nov 11, 2003 11:24 pm

Thanks.

Post by buzzt »

You da man! Works perfectly.
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

Not to be difficult, but wouldn't
Find: $
Replace: ;
Regular Expressions is checked and a Replace All work as well? It seemed to do fine for me, it's my only reason for asking
I choose to fight with a sack of angry cats.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

The $ being an anchor I did not even consider this, but it sure works.
Just does not look right to me that it does, no real replacement taking place ;)
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply