Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Brent Brent is offline
external usenet poster
 
Posts: 1
Default search and replace 1) and 2)...12)

Hi I have a doc that I need to replace a series of numbers with parens 1)
stuff 2) stuff.... 15) stuff etc

I want to replace the 1) ..15) with a 1, etc I tried using wild cards but
it will not let me work with the ) Any ideas how I can do this?

Thanks
Brent


  #2   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Klaus Linke Klaus Linke is offline
external usenet poster
 
Posts: 413
Default search and replace 1) and 2)...12)

"Brent" wrote:
Hi I have a doc that I need to replace a series of numbers with parens 1)
stuff 2) stuff.... 15) stuff etc

I want to replace the 1) ..15) with a 1, etc I tried using wild cards
but it will not let me work with the ) Any ideas how I can do this?



Hi Brent,

Since parentheses are used in wildcard matches to delimit groups, you have
to "escape" them with a backslash in "Find what":

Find what: (^13[0-9]{1,2})\)
Replace with: \1

I included the preceeding paragraph mark ^13 since else the expression might
match numbers in parentheses -- such as in bibliography entries like
"(Darwin 1859)".

Regards,
Klaus


  #3   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Klaus Linke Klaus Linke is offline
external usenet poster
 
Posts: 413
Default search and replace 1) and 2)...12)

If you don't want to include the paragraph mark, but want to make sure no
more than two numbers are matched, you can use the "beginning of word
anchor" :

Find what: ([0-9]{1,2})\)

Klaus


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
Need some Search & Replace help scotteh New Users 17 January 24th 07 04:05 PM
Search and Replace Johann Swart Microsoft Word Help 4 September 25th 06 07:53 AM
Search and replace jldube Microsoft Word Help 5 May 5th 06 03:45 PM
Search and Replace Jackie Formatting Long Documents 0 October 20th 05 10:23 AM
search and replace Tweedy Microsoft Word Help 1 February 10th 05 12:30 PM


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