Alright, that works!  (Thanks for steering me.)  Is there anyway to turn off
the "longest match" rule?  When I've got something like "(data) text
(data)", the whole bit is matched when I'd rather get two separate matches.
??

Thanks,
Jon Knight

 -----Original Message-----
From:   Keith Bates [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, December 29, 2005 6:56 PM
To:     [email protected]
Subject:        Re: [users] Regular Expression for data in parentheses

On Thu, 29 Dec 2005 18:30:13 -0600
"Knight, Jon" <[EMAIL PROTECTED]> wrote:

> Using OO 2.0.1 on Windows ...
> 
> In Writer, I'd like to Search & Replace all occurrences of data
> enclosed in parentheses.  I'm able to do so in MS Word by using
> "\(*\)" as a regular expression, without the double-quotes of
> course.  I have read the regular expression section in the OO help,
> but nothing I try is successful.  I thought that "\([:print:]\)"
> would work, but it doesn't.


Try \(.*\)

Your original expression only finds the closing parenthesis )
This will find everything including the parentheses, so if you want to
leave them in you will have to include them in the replace expression.

How about that I worked out a regex problem- never thought that would
happen!

-- 
God bless you,


Keith Bates
4 Mooloobar St
Narrabri NSW 2390

Phone: 02 67924890
Fax: 02 67925418

www.new-life.org.au

If you don't have a reason to live

JESUS IS THE ANSWER!

Ask him into your life today...
He really does make a difference.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-----------------------------------------
The information in this message may be proprietary and/or confidential,
and protected from disclosure.  If the reader of this message is not
the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify First Data immediately by
replying to this message and deleting it from your computer.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to