Replace between ( and )

General discussions about Advanced Find and Replace
Post Reply
Posts: 1
Joined: Thu Feb 16, 2006 11:13 am

Replace between ( and )

Post by zoetericky » Thu Feb 16, 2006 11:16 am

Hi, i have a long text and i want to replace everyting between ( and ), but i cant find how to.

Lorem ipsum (dolor) sit amet, consectetuer (adipiscing elit. Curabitur) convallis mollis (nunc). --> Lorem ipsum sit amet, consectetuer convallis mollis.

Site Admin
Posts: 1206
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre » Thu Feb 16, 2006 11:59 am


There are two solutions:
1. Use Replace operation with "Insert Between" action.
So on Main window go to Replace tab and select Between as action.
Then put ( into "Text to Find"
and ) into "Ending With"
then put your text into "Replace/Insert by text"

2. Use Batch replace with activated "Use regular expressions".
For your case, for example, you should use
Search for:
Replace with:
(put your text here)

then if your text between () may take several lines, I think it is not
your case, you should check "Modifier S" on Options window.

So first variant is a simple one, but second solution is more
Kind regards,
Abacre Limited

Post Reply