Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Ed Ed is offline
external usenet poster
 
Posts: 122
Default Help with Wildcard search/replace, please?

I'm trying to find
paragraph, tab, small letter a-z, period, tab
and replace it with
the original paragraph and tab, two more tabs, left parenthesis, the
original letter, right parenthesis, the original tab.

I constructed the following wildcard Find:
(^13^t)([a-z]).(^t)
and Replace With:
\1^t^t[\(]\2[\)]\3

I get the following error:
"The Replace With text contains a group number which is out of range."
I only have three groups in the Find, and \1, \2, and \3 in the Replace
With. Unless perhaps Word is seeing [\(] and [\)] as another group?

Any suggestions, please?
--
Ed
Chief Chef,
Kludge Code Cafe
"Spaghetti Is Our Specialty!"


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Ed Ed is offline
external usenet poster
 
Posts: 122
Default Help with Wildcard search/replace, please?


"Ed" wrote in message
...
I'm trying to find
paragraph, tab, small letter a-z, period, tab
and replace it with
the original paragraph and tab, two more tabs, left parenthesis, the
original letter, right parenthesis, the original tab.

I constructed the following wildcard Find:
(^13^t)([a-z]).(^t)
and Replace With:
\1^t^t[\(]\2[\)]\3

I get the following error:
"The Replace With text contains a group number which is out of range."
I only have three groups in the Find, and \1, \2, and \3 in the Replace
With. Unless perhaps Word is seeing [\(] and [\)] as another group?


Never mind. I replaced the [\(] and [\)] with ^40 and ^41 and it worked
fine. Thank you Graham Mayor and Klaus Linke for your excellent tutorial on
the Word FAQs! I just needed to read and think a bit more.

--
Ed
Chief Chef,
Kludge Code Cafe
"Spaghetti Is Our Specialty!"


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
Wildcard expression? RedRado03 Microsoft Word Help 1 July 5th 06 05:46 PM
Amazing Bug in Search/Replace -- still! Uriel Microsoft Word Help 11 February 17th 06 12:26 AM
Macro for bold text using wildcard Suusje Microsoft Word Help 0 September 26th 05 03:50 PM
wildcard find spanning the text of hyperlink Makhtar Microsoft Word Help 2 April 15th 05 07:28 PM
Replace and retain whatever the wildcard represents HONYAKUKA Microsoft Word Help 2 January 4th 05 04:12 AM


All times are GMT +1. The time now is 12:22 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"