Find (some text and other characters) at the end of lines

General questions about using TextPad

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

Post Reply
jpg
Posts: 14
Joined: Fri Mar 28, 2008 10:21 pm

Find (some text and other characters) at the end of lines

Post by jpg »

Sorry but the solution didn´t work i all cases

Example

Ihave thse:

Art. 37. Os serviços (art 234) de (Partes mantidas ional)
Art. 38. seguintes (partes 1º) e cláusulas (Redação nº 10)
1) eguinte Partes mantidas, clausulas (Derogado por)
a) Os serviços de
As aeronaves civis compreendem (artigos 72, I, 109)


I need these:
Art. 37. Os serviços (art 234) de
#(Partes mantidas ional)
Art. 38. seguintes (partes 1º) e cláusulas
#(Redação nº 10)
1) eguinte Partes mantidas, clausulas
#(Derogado por)
a) Os serviços de
As aeronaves civis compreendem
#(artigos 72, I, 109)


Thanks
gan

Post by gan »

You could try this one...

Search for:

Code: Select all

[^#](\([^\(\)]+\) *$)
And replace with this:

Code: Select all

\n#\1
Gan
jpg
Posts: 14
Joined: Fri Mar 28, 2008 10:21 pm

Post by jpg »

THANKS IT WORKS PERFECT
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Sorry but the solution didn´t work i all cases
It looks like you have changed your requirements.
But at least you have a working solution.
Hope this was helpful.............good luck,
Bob
Post Reply