Results 1 to 9 of 9
  1. #1
    3 Star Lounger
    Join Date
    Dec 2009
    Location
    West Midlands, UK
    Posts
    236
    Thanks
    233
    Thanked 2 Times in 2 Posts

    Find and Replace

    I use Office 2003/Windows 7. I recently copied a Wikipedia entry into Word and tried to remove about 150 pointers to references in the form [135]. I have tried to remove them all by Find [*] and Replace {nothing}, but to no effect - not even Find [1] will work. I have looked through Find/Replace Help but cannot see an answer. How do I do it.

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Hi Mike,

    If those references are hyperlinks, you'll need to kill the links before F/R will work. You can do this via Ctrl-A, then Ctrl-Shift-F9. The, you can use a wildcard Find/Replace, where the Find expression is: \[[0-9]{1,}\]
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  3. The Following User Says Thank You to macropod For This Useful Post:

    mike21 (2012-03-10)

  4. #3
    3 Star Lounger
    Join Date
    Dec 2009
    Location
    West Midlands, UK
    Posts
    236
    Thanks
    233
    Thanked 2 Times in 2 Posts
    I now realise they would have been in blue in the Wikipedia article but black in the Word document, so that reason did not dawn on me - will give it a go.

  5. #4
    3 Star Lounger
    Join Date
    Dec 2009
    Location
    West Midlands, UK
    Posts
    236
    Thanks
    233
    Thanked 2 Times in 2 Posts
    I have followed the instructions from "macropod", but it did not work. I then typed [1] at the beginning of the document - not a link - and tried again but it still did not work. I did a find on [1] and that did work. I tried a find on [0-9] but that did not work. I did a copy/paste of your character string, so there was no transcription error. Any observations?

  6. #5
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Hi Mike,

    Did you use use a wildcard Find/Replace?
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  7. The Following User Says Thank You to macropod For This Useful Post:

    mike21 (2012-03-13)

  8. #6
    3 Star Lounger
    Join Date
    Dec 2009
    Location
    West Midlands, UK
    Posts
    236
    Thanks
    233
    Thanked 2 Times in 2 Posts
    I typed
    \[[0-150]{1,}\] into find/replace (the references numbers I wanted to remove go up to [150]) - is that what you meant by did I use a wildcard - I assumed that the 0-150 was effectively a wildcard, but maybe I have misunderstood. To reiterate, to see if find/replace would remove the [ character I typed [1] at the beginning of the document and did find/replace [1], and it worked, so the problem is not with the [ & ] characters.

  9. #7
    WS Lounge VIP
    Join Date
    Mar 2006
    Location
    Maryland, USA
    Posts
    690
    Thanks
    17
    Thanked 66 Times in 56 Posts
    To use a wild card search, you must put a check in the box before Use wildcards. If you don't see the check boxes, click the More>> button.

    Pam

  10. The Following User Says Thank You to PamCaswell For This Useful Post:

    mike21 (2012-03-13)

  11. #8
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Quote Originally Posted by mike21 View Post
    I typed \[[0-150]{1,}\] into find/replace (the references numbers I wanted to remove go up to [150]) - is that what you meant by did I use a wildcard - I assumed that the 0-150 was effectively a wildcard, but maybe I have misunderstood.
    On the Find/Replace dialogue, click the 'More' button if it is displayed, then click on the 'use wildcards' option. You need to insert the Find term exactly as I gave it. Your 'enhancements' don't do anything to improve it. If you want to experiment, you might find it useful to study what Word has to say on the topic in its help file.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  12. The Following User Says Thank You to macropod For This Useful Post:

    mike21 (2012-03-13)

  13. #9
    3 Star Lounger
    Join Date
    Dec 2009
    Location
    West Midlands, UK
    Posts
    236
    Thanks
    233
    Thanked 2 Times in 2 Posts
    Many thanks - it worked fine - will make a note for future use.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •