Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Andrey Kazak[_2_] Andrey Kazak[_2_] is offline
external usenet poster
 
Posts: 13
Default Word 2003: Search and Replace Question...

Greetings!

The idea is to select all words in round brackets, for example:

(word to be selected)

I try to use standard Word Search and Replace Use wildcards functionality:
\(([A-Za-z]@[ \)])@

I get error, while manual combinations:
\([A-Za-z]@[ \)] - for one word in round brackets;
\([A-Za-z]@[ \)][A-Za-z]@[ \)] - for two words in round brackets;
\([A-Za-z]@[ \)][A-Za-z]@[ \)][A-Za-z]@[ \)] - for three words in round
brackets;
etc...

work normally...

Could you help me please to figure out the problem and the way to cope with
it?

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Paul B[_5_] Paul B[_5_] is offline
external usenet poster
 
Posts: 50
Default Word 2003: Search and Replace Question...

On Thu, 11 Jun 2009 11:48:01 -0700, Andrey Kazak wrote:

Greetings!

The idea is to select all words in round brackets, for example:

(word to be selected)

I try to use standard Word Search and Replace Use wildcards functionality:
\(([A-Za-z]@[ \)])@

I get error, while manual combinations:
\([A-Za-z]@[ \)] - for one word in round brackets;
\([A-Za-z]@[ \)][A-Za-z]@[ \)] - for two words in round brackets;
\([A-Za-z]@[ \)][A-Za-z]@[ \)][A-Za-z]@[ \)] - for three words in round
brackets;
etc...

work normally...

Could you help me please to figure out the problem and the way to cope with
it?


Does \([a-z A-Z]@\) work for you? The space in the character
range expression seems to be crucial.

p.
--
Using Office 2003 sp3 on Windows XP Home
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Andrey Kazak[_2_] Andrey Kazak[_2_] is offline
external usenet poster
 
Posts: 13
Default Word 2003: Search and Replace Question...

Thank you!

Could you explain me please in more detail what in my original notation is
wrong:

\(([A-Za-z]@[ \)])@

And also, one small related question:
Can I select all words in brackets, BUT excluding brackets itself?


"Paul B" wrote:

On Thu, 11 Jun 2009 11:48:01 -0700, Andrey Kazak wrote:

Does \([a-z A-Z]@\) work for you? The space in the character
range expression seems to be crucial.

p.
--
Using Office 2003 sp3 on Windows XP Home

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Paul B[_5_] Paul B[_5_] is offline
external usenet poster
 
Posts: 50
Default Word 2003: Search and Replace Question...

I'm far from an expert on this, and very frankly, after working
with regular expression engines such as Perl's, Word's search
engine and it documentation drives me batty.

It looks to me that you were looking for one or more instances of
a word followed by a space and a right parenthesis.

As for eliminating the brackets, I think you'd have to do that
via macro. The Find result would be converted to a Range and then
manipulated. But I'll have to defer to someone else on this.

bw,
p.


On Thu, 11 Jun 2009 22:53:01 -0700, Andrey Kazak wrote:

Thank you!

Could you explain me please in more detail what in my original notation is
wrong:

\(([A-Za-z]@[ \)])@

And also, one small related question:
Can I select all words in brackets, BUT excluding brackets itself?


"Paul B" wrote:

On Thu, 11 Jun 2009 11:48:01 -0700, Andrey Kazak wrote:

Does \([a-z A-Z]@\) work for you? The space in the character
range expression seems to be crucial.

p.
--
Using Office 2003 sp3 on Windows XP Home



--
Using Office 2003 sp3 on Windows XP Home
Behold, I will allure her, I will lead her into the wilderness
and speak tenderly to her - Ho. 2.14.
http://onfollowingchrist.wordpress.com/
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
grammatim[_2_] grammatim[_2_] is offline
external usenet poster
 
Posts: 2,751
Default Word 2003: Search and Replace Question...

On Jun 12, 1:53*am, Andrey Kazak
wrote:
Thank you!

Could you explain me please in more detail what in my original notation is
wrong:

\(([A-Za-z]@[ \)])@


When Paul said "The space in the character range expression seems to
be crucial," he meant that you left the space between Z and a out of
the formula.

And also, one small related question:
Can I select all words in brackets, BUT excluding brackets itself?



"Paul B" wrote:
On Thu, 11 Jun 2009 11:48:01 -0700, Andrey Kazak wrote:


Does \([a-z A-Z]@\) work for you? The space in the character
range expression seems to be crucial.


p.
--
Using Office 2003 sp3 on Windows XP Home-



  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Andrey Kazak[_2_] Andrey Kazak[_2_] is offline
external usenet poster
 
Posts: 13
Default Word 2003: Search and Replace Question...

It's still not clear for me about what is wrong...
Could you provide any more details please?

Is it correct to search:
[A-Za-z]@[ \)]

???
or not legal?...


"Paul B" wrote:

It looks to me that you were looking for one or more instances of
a word followed by a space and a right parenthesis.


"grammatim" wrote:

When Paul said "The space in the character range expression seems to
be crucial," he meant that you left the space between Z and a out of
the formula.


  #7   Report Post  
Posted to microsoft.public.word.docmanagement
grammatim[_2_] grammatim[_2_] is offline
external usenet poster
 
Posts: 2,751
Default Word 2003: Search and Replace Question...

YOU HAVE TO HAVE A SPACE BETWEEN THE A-Z GROUP AND THE a-z GROUP.

(It might be clearer if you didn't keep deleting everyting that
prceded the last message you're responding to.)

On Jun 12, 10:59*am, Andrey Kazak
wrote:
It's still not clear for me about what is wrong...
Could you provide any more details please?

Is it correct to search:
[A-Za-z]@[ \)]

???
or not legal?...



"Paul B" wrote:
It looks to me that you were looking for one or more instances of
a word followed by a space and a right parenthesis.

"grammatim" wrote:
When Paul said "The space in the character range expression seems to
be crucial," he meant that you left the space between Z and a out of
the formula.-

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace Question--Word 2003 Joe McGuire Microsoft Word Help 2 May 8th 09 03:05 PM
Question about search and replace Gilles Vanneste New Users 2 September 22nd 08 02:27 PM
Search & Replace--Word 2002-2003 Joe McGuire Microsoft Word Help 11 February 5th 07 07:10 AM
Search and replace question Ben K. Bullock New Users 5 March 17th 06 04:14 AM
A search and replace question [email protected] Page Layout 1 March 7th 05 03:32 PM


All times are GMT +1. The time now is 03:47 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"