Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find and Replace Question--Word 2003 | Microsoft Word Help | |||
Question about search and replace | New Users | |||
Search & Replace--Word 2002-2003 | Microsoft Word Help | |||
Search and replace question | New Users | |||
A search and replace question | Page Layout |