View Single Post
  #1   Report Post  
Posted to microsoft.public.word.formatting.longdocs
prkhan56 prkhan56 is offline
external usenet poster
 
Posts: 3
Default Exclude numbers in parantheses using wildcard find and replace

Hello All,
I am using Word 2010 and have a long document where there are numbers
in parantheses.
I wish to keep these numbers including the parantheses and the hyphen
sign and delete everything in the document.

eg.(1-1),(1-2)............(1-10).......many more like these with
different combinations.

At present I have only single digit on the left side of the hyphen.

I tried the following using wildcard find and replace but it says Word
found no items matching this criteria.

(\([!0-9]{1,}\-[!0-9]{1,}\))

So after the find and replace I should have only numbers in
parantheses with hyphens...all other text/digits should be deleted.

Any help please
Thanks in advance
Rashid Khan