[Solved] Help find and replace within parentheses

Discuss the word processor
Locked
Ciscokid2
Posts: 6
Joined: Wed Aug 14, 2013 1:19 am

[Solved] Help find and replace within parentheses

Post by Ciscokid2 »

Entry for word does not work in search and replace for Open office
What I have tried is /(*/)
I would like the command to find and replace the parentheses and all within.
Thanks.
Last edited by Ciscokid2 on Wed Aug 14, 2013 4:29 am, edited 1 time in total.
OpenOffice 3.3.0 on Windows 7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Help find and replace withing parentheses pls.

Post by acknak »

Ciscokid2 wrote:... I would like the command to find and replace the parentheses and all within.
I normally use something like:
Search for: \([^)]*\)
Replace with: whatever
Options/Regular expression: YES (checked)
AOO4/LO5 • Linux • Fedora 23
Ciscokid2
Posts: 6
Joined: Wed Aug 14, 2013 1:19 am

Re: Help find and replace withing parentheses pls.

Post by Ciscokid2 »

Excellent! Thanks acknak.....that did the trick. And I replaced the parentheses with square brackets in your example to successfully get rid of all inside brackets too.
Well done.
Appreciate the help.
OpenOffice 3.3.0 on Windows 7
Locked