![]() |
#1
|
|||
|
|||
![]()
Following on from my post here (https://www.msofficeforums.com/word/...ix-suffix.html)
I've got a document with in body text page numbers (it's a scanned in book) and I wish to remove these. The format of the page numbers is [*] (e.g. page number within square brackets) and I wist to remove them from the body text. Is there anyway to seach for a wildcard with [ before & ] after and automatically delete? Thanks |
#2
|
|||
|
|||
![]()
Unfortunately, the '[' and ']' characters have a special function in wildcard usage, so trying to change them while using the wildcard feature is a problem.
Try the following: With the wildcard feature unselected, use Replace to change all your '[' characters to something that is not generally found in your document. Perhaps XxX, or @-@. Then do the same for the ']' character. This should turn [1] into XxX1XxX and [100] into XxX100XxX, etc. Now turn on the wildcard option, and use Find/Replace for XxX*XxX. This will find any string enclosed within the XxX characters. If you leave the Replace box empty, you should delete all the old page numbers in your scanned document. (Assuming you have used OCR to convert it to text.) I suggest that to begin with you use 'Find Next' and Replace individually, just to be sure your document does not have other strings of text enclosed in [] brackets or you might loose some important content by mistake. Only use Find All when you are confident... |
#3
|
|||
|
|||
![]()
Thanks for the excellent reply.
So simple yet elegant! |
#4
|
|||
|
|||
![]()
Glad to be of help.
|
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
LitWissOnline | Word | 3 | 01-24-2011 03:40 PM |
Text and page numbers in footers? | MikeT1953 | Word | 0 | 07-09-2010 08:14 PM |
Add text to page numbers | alpruett | Word | 0 | 07-07-2010 09:40 AM |
help with find and replace | sjkiss | Word | 1 | 04-12-2010 08:08 AM |
Find /Replace Help | ilcaa | Word | 2 | 11-02-2009 08:41 AM |